vertx-lang-scala-docs_2.12 3.8.0 API < Back
 

# Packages

-  package root
  Definition Classes
    root
-  package io
  Definition Classes
    root
-  package vertx
  Definition Classes
    io
-  package scala
  Definition Classes
    vertx
-  package ext
  Definition Classes
    scala
-  package web
  Definition Classes
    ext
-  package client
  Definition Classes
    web
-  package predicate
  Definition Classes
    client
- ErrorConverter
- ResponsePredicate
- ResponsePredicateResult

o

io.vertx.scala.ext.web.client.predicate

# ResponsePredicate 

###
Companion class ResponsePredicate

#### object ResponsePredicate

Linear Supertypes
AnyRef, Any
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. ResponsePredicate
2. AnyRef
3. Any

1. Hide All
2. Show All

Visibility

1. Public
2. All

### Value Members

1.  final def !=(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
2.  final def ##(): Int
   Definition Classes
     AnyRef → Any
3.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
4.  def apply(asJava: ext.web.client.predicate.ResponsePredicate): ResponsePredicate
5.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
6.  def clone(): AnyRef
   Attributes
     protected[java.lang]
   Definition Classes
     AnyRef
   Annotations
     @native() @throws( ... )
7.  def contentType(mimeTypes: Buffer[String]): ResponsePredicate

   Creates a predicate validating the response has a `content-type` header matching one of the `mimeTypes`.

   Creates a predicate validating the response has a `content-type` header matching one of the `mimeTypes`. * @param mimeTypes the list of mime types

8.  def contentType(mimeType: String): ResponsePredicate

   Creates a predicate validating the response has a `content-type` header matching the `mimeType`.

   Creates a predicate validating the response has a `content-type` header matching the `mimeType`. * @param mimeType the mime type

9.  def create(test: (HttpResponse[Unit]) ⇒ ResponsePredicateResult, errorConverter: ErrorConverter): ResponsePredicate

   Creates a new io.vertx.scala.ext.web.client.predicate.ResponsePredicate, using a custom `errorConverter`.

   Creates a new io.vertx.scala.ext.web.client.predicate.ResponsePredicate, using a custom `errorConverter`. * @param test the function to invoke when the response is received

   errorConverter

     converts the result of the `test` function to a Throwable

10.  def create(test: (HttpResponse[Unit]) ⇒ ResponsePredicateResult): ResponsePredicate

    Creates a new io.vertx.scala.ext.web.client.predicate.ResponsePredicate.

    Creates a new io.vertx.scala.ext.web.client.predicate.ResponsePredicate. The default error converter will be used (discarding the body). * @param test the function to invoke when the response is received

11.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
12.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
13.  def finalize(): Unit
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
14.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
15.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
16.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
17.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
18.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
19.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
20.  def status(min: Int, max: Int): ResponsePredicate

    Creates a predicate asserting that the status response code is in the `[min,max[` range.

    Creates a predicate asserting that the status response code is in the `[min,max[` range. * @param min the lower (inclusive) accepted status code

    max

      the highest (exclusive) accepted status code

21.  def status(statusCode: Int): ResponsePredicate

    Creates a predicate asserting that the status response code is equal to `statusCode`.

    Creates a predicate asserting that the status response code is equal to `statusCode`. * @param statusCode the expected status code

22.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
23.  def toString(): String
    Definition Classes
      AnyRef → Any
24.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
25.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
26.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @native() @throws( ... )

### Inherited from AnyRef

### Inherited from Any

### Ungrouped