Package | Description |
---|---|
io.vertx.rxjava.ext.web.client | |
io.vertx.rxjava.ext.web.client.predicate |
Modifier and Type | Method and Description |
---|---|
HttpRequest<T> |
HttpRequest.expect(ResponsePredicate predicate)
Add an expectation that the response is valid according to the provided
predicate . |
Modifier and Type | Field and Description |
---|---|
static ResponsePredicate |
ResponsePredicate.JSON
Creates a predicate validating the response
content-type is application/json . |
static ResponsePredicate |
ResponsePredicate.SC_ACCEPTED
202 Accepted
|
static ResponsePredicate |
ResponsePredicate.SC_BAD_GATEWAY
502 Bad Gateway
|
static ResponsePredicate |
ResponsePredicate.SC_BAD_REQUEST
400 Bad Request
|
static ResponsePredicate |
ResponsePredicate.SC_CLIENT_ERRORS
Any 4XX client error
|
static ResponsePredicate |
ResponsePredicate.SC_CONFLICT
409 Conflict
|
static ResponsePredicate |
ResponsePredicate.SC_CONTINUE
100 Continue
|
static ResponsePredicate |
ResponsePredicate.SC_CREATED
201 Created
|
static ResponsePredicate |
ResponsePredicate.SC_EARLY_HINTS
103 Early Hints
|
static ResponsePredicate |
ResponsePredicate.SC_EXPECTATION_FAILED
417 Expectation Failed
|
static ResponsePredicate |
ResponsePredicate.SC_FAILED_DEPENDENCY
424 Failed Dependency (WebDAV, RFC4918)
|
static ResponsePredicate |
ResponsePredicate.SC_FORBIDDEN
403 Forbidden
|
static ResponsePredicate |
ResponsePredicate.SC_FOUND
302 Found
|
static ResponsePredicate |
ResponsePredicate.SC_GATEWAY_TIMEOUT
504 Gateway Timeout
|
static ResponsePredicate |
ResponsePredicate.SC_GONE
410 Gone
|
static ResponsePredicate |
ResponsePredicate.SC_HTTP_VERSION_NOT_SUPPORTED
505 HTTP Version Not Supported
|
static ResponsePredicate |
ResponsePredicate.SC_INFORMATIONAL_RESPONSE
Any 1XX informational response
|
static ResponsePredicate |
ResponsePredicate.SC_INSUFFICIENT_STORAGE
507 Insufficient Storage (WebDAV, RFC4918)
|
static ResponsePredicate |
ResponsePredicate.SC_INTERNAL_SERVER_ERROR
500 Internal Server Error
|
static ResponsePredicate |
ResponsePredicate.SC_LENGTH_REQUIRED
411 Length Required
|
static ResponsePredicate |
ResponsePredicate.SC_LOCKED
423 Locked (WebDAV, RFC4918)
|
static ResponsePredicate |
ResponsePredicate.SC_METHOD_NOT_ALLOWED
405 Method Not Allowed
|
static ResponsePredicate |
ResponsePredicate.SC_MISDIRECTED_REQUEST
421 Misdirected Request
|
static ResponsePredicate |
ResponsePredicate.SC_MOVED_PERMANENTLY
301 Moved Permanently
|
static ResponsePredicate |
ResponsePredicate.SC_MULTI_STATUS
207 Multi-Status (WebDAV, RFC2518)
|
static ResponsePredicate |
ResponsePredicate.SC_MULTIPLE_CHOICES
300 Multiple Choices
|
static ResponsePredicate |
ResponsePredicate.SC_NETWORK_AUTHENTICATION_REQUIRED
511 Network Authentication Required (RFC6585)
|
static ResponsePredicate |
ResponsePredicate.SC_NO_CONTENT
204 No Content
|
static ResponsePredicate |
ResponsePredicate.SC_NON_AUTHORITATIVE_INFORMATION
203 Non-Authoritative Information (since HTTP/1.1)
|
static ResponsePredicate |
ResponsePredicate.SC_NOT_ACCEPTABLE
406 Not Acceptable
|
static ResponsePredicate |
ResponsePredicate.SC_NOT_EXTENDED
510 Not Extended (RFC2774)
|
static ResponsePredicate |
ResponsePredicate.SC_NOT_FOUND
404 Not Found
|
static ResponsePredicate |
ResponsePredicate.SC_NOT_IMPLEMENTED
501 Not Implemented
|
static ResponsePredicate |
ResponsePredicate.SC_NOT_MODIFIED
304 Not Modified
|
static ResponsePredicate |
ResponsePredicate.SC_OK
200 OK
|
static ResponsePredicate |
ResponsePredicate.SC_PARTIAL_CONTENT
206 Partial Content
|
static ResponsePredicate |
ResponsePredicate.SC_PAYMENT_REQUIRED
402 Payment Required
|
static ResponsePredicate |
ResponsePredicate.SC_PERMANENT_REDIRECT
308 Permanent Redirect (RFC7538)
|
static ResponsePredicate |
ResponsePredicate.SC_PRECONDITION_FAILED
412 Precondition Failed
|
static ResponsePredicate |
ResponsePredicate.SC_PRECONDITION_REQUIRED
428 Precondition Required (RFC6585)
|
static ResponsePredicate |
ResponsePredicate.SC_PROCESSING
102 Processing (WebDAV, RFC2518)
|
static ResponsePredicate |
ResponsePredicate.SC_PROXY_AUTHENTICATION_REQUIRED
407 Proxy Authentication Required
|
static ResponsePredicate |
ResponsePredicate.SC_REDIRECTION
Any 3XX redirection
|
static ResponsePredicate |
ResponsePredicate.SC_REQUEST_ENTITY_TOO_LARGE
413 Request Entity Too Large
|
static ResponsePredicate |
ResponsePredicate.SC_REQUEST_HEADER_FIELDS_TOO_LARGE
431 Request Header Fields Too Large (RFC6585)
|
static ResponsePredicate |
ResponsePredicate.SC_REQUEST_TIMEOUT
408 Request Timeout
|
static ResponsePredicate |
ResponsePredicate.SC_REQUEST_URI_TOO_LONG
414 Request-URI Too Long
|
static ResponsePredicate |
ResponsePredicate.SC_REQUESTED_RANGE_NOT_SATISFIABLE
416 Requested Range Not Satisfiable
|
static ResponsePredicate |
ResponsePredicate.SC_RESET_CONTENT
205 Reset Content
|
static ResponsePredicate |
ResponsePredicate.SC_SEE_OTHER
303 See Other (since HTTP/1.1)
|
static ResponsePredicate |
ResponsePredicate.SC_SERVER_ERRORS
Any 5XX server error
|
static ResponsePredicate |
ResponsePredicate.SC_SERVICE_UNAVAILABLE
503 Service Unavailable
|
static ResponsePredicate |
ResponsePredicate.SC_SUCCESS
Any 2XX success
|
static ResponsePredicate |
ResponsePredicate.SC_SWITCHING_PROTOCOLS
101 Switching Protocols
|
static ResponsePredicate |
ResponsePredicate.SC_TEMPORARY_REDIRECT
307 Temporary Redirect (since HTTP/1.1)
|
static ResponsePredicate |
ResponsePredicate.SC_TOO_MANY_REQUESTS
429 Too Many Requests (RFC6585)
|
static ResponsePredicate |
ResponsePredicate.SC_UNAUTHORIZED
401 Unauthorized
|
static ResponsePredicate |
ResponsePredicate.SC_UNORDERED_COLLECTION
425 Unordered Collection (WebDAV, RFC3648)
|
static ResponsePredicate |
ResponsePredicate.SC_UNPROCESSABLE_ENTITY
422 Unprocessable Entity (WebDAV, RFC4918)
|
static ResponsePredicate |
ResponsePredicate.SC_UNSUPPORTED_MEDIA_TYPE
415 Unsupported Media Type
|
static ResponsePredicate |
ResponsePredicate.SC_UPGRADE_REQUIRED
426 Upgrade Required (RFC2817)
|
static ResponsePredicate |
ResponsePredicate.SC_USE_PROXY
305 Use Proxy (since HTTP/1.1)
|
static ResponsePredicate |
ResponsePredicate.SC_VARIANT_ALSO_NEGOTIATES
506 Variant Also Negotiates (RFC2295)
|
Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<ResponsePredicate> |
ResponsePredicate.__TYPE_ARG |
Modifier and Type | Method and Description |
---|---|
static ResponsePredicate |
ResponsePredicate.contentType(List<String> mimeTypes)
Creates a predicate validating the response has a
content-type header matching one of the mimeTypes . |
static ResponsePredicate |
ResponsePredicate.contentType(String mimeType)
Creates a predicate validating the response has a
content-type header matching the mimeType . |
static ResponsePredicate |
ResponsePredicate.create(java.util.function.Function<HttpResponse<Void>,ResponsePredicateResult> test)
Creates a new
ResponsePredicate . |
static ResponsePredicate |
ResponsePredicate.create(java.util.function.Function<HttpResponse<Void>,ResponsePredicateResult> test,
ErrorConverter errorConverter)
Creates a new
ResponsePredicate , using a custom errorConverter . |
static ResponsePredicate |
ResponsePredicate.newInstance(ResponsePredicate arg) |
static ResponsePredicate |
ResponsePredicate.status(int statusCode)
Creates a predicate asserting that the status response code is equal to
statusCode . |
static ResponsePredicate |
ResponsePredicate.status(int min,
int max)
Creates a predicate asserting that the status response code is in the
[min,max[ range. |
Copyright © 2021 Eclipse. All rights reserved.