|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
| Uses of BaseResponsePromise in com.atlassian.httpclient.api |
|---|
| Subinterfaces of BaseResponsePromise in com.atlassian.httpclient.api | |
|---|---|
interface |
ResponsePromise
A specific type of BaseResponsePromise for handling a response promise for a single HTTP request |
interface |
ResponsesPromise
A specific type of BaseResponsePromise for handling a batch of response promises, as supplied via a when-based promise aggregation |
| Methods in com.atlassian.httpclient.api that return BaseResponsePromise | |
|---|---|
BaseResponsePromise<V> |
BaseResponsePromise.badRequest(com.atlassian.util.concurrent.Effect<V> callback)
Register a callback to respond to 'bad request' (400) HTTP responses. |
BaseResponsePromise<V> |
BaseResponsePromise.clientError(com.atlassian.util.concurrent.Effect<V> callback)
Register a callback to respond to 'client error' (4xx) HTTP responses. |
BaseResponsePromise<V> |
BaseResponsePromise.conflict(com.atlassian.util.concurrent.Effect<V> callback)
Register a callback to respond to 'conflict' (409) HTTP responses. |
BaseResponsePromise<V> |
BaseResponsePromise.created(com.atlassian.util.concurrent.Effect<V> callback)
Register a callback to respond to 'created' (201) HTTP responses. |
BaseResponsePromise<V> |
BaseResponsePromise.done(com.atlassian.util.concurrent.Effect<V> callback)
Register a callback to respond to all completed (1xx, 2xx, 3xx, 4xx, and 5xx) HTTP responses. |
BaseResponsePromise<V> |
BaseResponsePromise.error(com.atlassian.util.concurrent.Effect<V> callback)
Register a callback to respond to all error (4xx and 5xx) HTTP responses. |
BaseResponsePromise<V> |
BaseResponsePromise.fail(com.atlassian.util.concurrent.Effect<java.lang.Throwable> callback)
Register a callback to respond to exceptions thrown while executing the HTTP request. |
BaseResponsePromise<V> |
BaseResponsePromise.forbidden(com.atlassian.util.concurrent.Effect<V> callback)
Register a callback to respond to 'forbidden' (403) HTTP responses. |
BaseResponsePromise<V> |
BaseResponsePromise.informational(com.atlassian.util.concurrent.Effect<V> callback)
Register a callback to respond to 'informational' (1xx) HTTP responses. |
BaseResponsePromise<V> |
BaseResponsePromise.internalServerError(com.atlassian.util.concurrent.Effect<V> callback)
Register a callback to respond to 'internal server error' (500) HTTP responses. |
BaseResponsePromise<V> |
BaseResponsePromise.noContent(com.atlassian.util.concurrent.Effect<V> callback)
Register a callback to respond to 'no content' (204) HTTP responses. |
BaseResponsePromise<V> |
BaseResponsePromise.notFound(com.atlassian.util.concurrent.Effect<V> callback)
Register a callback to respond to 'not found' (404) HTTP responses. |
BaseResponsePromise<V> |
BaseResponsePromise.notModified(com.atlassian.util.concurrent.Effect<V> callback)
Register a callback to respond to 'not modified' (304) HTTP responses. |
BaseResponsePromise<V> |
BaseResponsePromise.notSuccessful(com.atlassian.util.concurrent.Effect<V> callback)
Register a callback to respond to all non-'successful' (1xx, 3xx, 4xx, 5xx) HTTP responses. |
BaseResponsePromise<V> |
BaseResponsePromise.ok(com.atlassian.util.concurrent.Effect<V> callback)
Register a callback to respond to 'ok' (200) HTTP responses. |
BaseResponsePromise<V> |
BaseResponsePromise.on(int statusCode,
com.atlassian.util.concurrent.Effect<V> callback)
Register a callback to respond to HTTP responses with a specific status code. |
BaseResponsePromise<V> |
BaseResponsePromise.others(com.atlassian.util.concurrent.Effect<V> callback)
Register a callback to respond to all other HTTP responses (i.e. |
BaseResponsePromise<V> |
BaseResponsePromise.otherwise(com.atlassian.util.concurrent.Effect<java.lang.Throwable> callback)
Registers the specified callback as a handler for both of the following events: Any value passed to fail()
Any value passed to others(), converted into an exception
|
BaseResponsePromise<V> |
BaseResponsePromise.redirection(com.atlassian.util.concurrent.Effect<V> callback)
Register a callback to respond to 'redirection' (3xx) HTTP responses. |
BaseResponsePromise<V> |
BaseResponsePromise.seeOther(com.atlassian.util.concurrent.Effect<V> callback)
Register a callback to respond to 'see other' (303) HTTP responses. |
BaseResponsePromise<V> |
BaseResponsePromise.serverError(com.atlassian.util.concurrent.Effect<V> callback)
Register a callback to respond to 'server error' (5xx) HTTP responses. |
BaseResponsePromise<V> |
BaseResponsePromise.serviceUnavailable(com.atlassian.util.concurrent.Effect<V> callback)
Register a callback to respond to 'service unavailable' (503) HTTP responses. |
BaseResponsePromise<V> |
BaseResponsePromise.successful(com.atlassian.util.concurrent.Effect<V> callback)
Register a callback to respond to 'successful' (2xx) HTTP responses. |
BaseResponsePromise<V> |
BaseResponsePromise.then(com.google.common.util.concurrent.FutureCallback<V> callback)
Register a future callback to respond to all completed HTTP responses and exceptions thrown while executing the HTTP request. |
BaseResponsePromise<V> |
BaseResponsePromise.unauthorized(com.atlassian.util.concurrent.Effect<V> callback)
Register a callback to respond to 'unauthorized' (401) HTTP responses. |
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||