| Package | Description |
|---|---|
| com.atlassian.httpclient.api |
| Modifier and Type | Method and Description |
|---|---|
Response |
ResponseTooLargeException.getResponse() |
Response |
UnexpectedResponseException.getResponse()
Returns the unexpected response
|
| Modifier and Type | Method and Description |
|---|---|
Function<Response,T> |
DefaultResponseTransformation.getSuccessFunctions() |
Function<Response,T> |
ResponseTransformation.getSuccessFunctions() |
static <T> Function<Response,T> |
ResponsePromises.newUnexpectedResponseFunction() |
| Modifier and Type | Method and Description |
|---|---|
ResponseTransformation.Builder<T> |
ResponseTransformation.Builder.badRequest(Function<Response,? extends T> f)
Register a function to transform 'bad request' (400) HTTP responses.
|
ResponseTransformation.Builder<T> |
ResponseTransformation.Builder.clientError(Function<Response,? extends T> f)
Register a function to transform 'client error' (4xx) HTTP responses.
|
ResponseTransformation.Builder<T> |
ResponseTransformation.Builder.conflict(Function<Response,? extends T> f)
Register a function to transform 'conflict' (409) HTTP responses.
|
ResponseTransformation.Builder<T> |
ResponseTransformation.Builder.created(Function<Response,? extends T> f)
Register a function to transform 'created' (201) HTTP responses.
|
ResponseTransformation.Builder<T> |
ResponseTransformation.Builder.done(Function<Response,T> f)
Register a function to transform all completed (1xx, 2xx, 3xx, 4xx, and 5xx) HTTP responses.
|
ResponseTransformation.Builder<T> |
ResponseTransformation.Builder.error(Function<Response,? extends T> f)
Register a function to transform all error (4xx and 5xx) HTTP responses.
|
ResponseTransformation.Builder<T> |
ResponseTransformation.Builder.forbidden(Function<Response,? extends T> f)
Register a function to transform 'forbidden' (403) HTTP responses.
|
ResponseTransformation.Builder<T> |
ResponseTransformation.Builder.informational(Function<Response,? extends T> f)
Register a function to transform 'informational' (1xx) HTTP responses.
|
ResponseTransformation.Builder<T> |
ResponseTransformation.Builder.internalServerError(Function<Response,? extends T> f)
Register a function to transform 'internal server error' (500) HTTP responses.
|
ResponseTransformation.Builder<T> |
ResponseTransformation.Builder.noContent(Function<Response,? extends T> f)
Register a function to transform 'no content' (204) HTTP responses.
|
ResponseTransformation.Builder<T> |
ResponseTransformation.Builder.notFound(Function<Response,? extends T> f)
Register a function to transform 'not found' (404) HTTP responses.
|
ResponseTransformation.Builder<T> |
ResponseTransformation.Builder.notModified(Function<Response,? extends T> f)
Register a function to transform 'not modified' (304) HTTP responses.
|
ResponseTransformation.Builder<T> |
ResponseTransformation.Builder.notSuccessful(Function<Response,? extends T> f)
Register a function to transform all non-'successful' (1xx, 3xx, 4xx, 5xx) HTTP responses.
|
ResponseTransformation.Builder<T> |
ResponseTransformation.Builder.ok(Function<Response,? extends T> f)
Register a function to transform 'ok' (200) HTTP responses.
|
ResponseTransformation.Builder<T> |
ResponseTransformation.Builder.on(HttpStatus status,
Function<Response,? extends T> f)
Register a function to transform HTTP responses with a specific status.
|
ResponseTransformation.Builder<T> |
ResponseTransformation.Builder.on(int statusCode,
Function<Response,? extends T> f)
Register a function to transform HTTP responses with a specific status code.
|
ResponseTransformation.Builder<T> |
ResponseTransformation.Builder.others(Function<Response,? extends T> f)
Register a function to transform all other HTTP responses (i.e.
|
ResponseTransformation.Builder<T> |
ResponseTransformation.Builder.redirection(Function<Response,? extends T> f)
Register a function to transform 'redirection' (3xx) HTTP responses.
|
ResponseTransformation.Builder<T> |
ResponseTransformation.Builder.seeOther(Function<Response,? extends T> f)
Register a function to transform 'see other' (303) HTTP responses.
|
ResponseTransformation.Builder<T> |
ResponseTransformation.Builder.serverError(Function<Response,? extends T> f)
Register a function to transform 'server error' (5xx) HTTP responses.
|
ResponseTransformation.Builder<T> |
ResponseTransformation.Builder.serviceUnavailable(Function<Response,? extends T> f)
Register a function to transform 'service unavailable' (503) HTTP responses.
|
ResponseTransformation.Builder<T> |
ResponseTransformation.Builder.successful(Function<Response,? extends T> f)
Register a function to transform 'successful' (2xx) HTTP responses.
|
static ResponsePromise |
ResponsePromises.toResponsePromise(io.atlassian.util.concurrent.Promise<Response> promise) |
ResponseTransformation.Builder<T> |
ResponseTransformation.Builder.unauthorized(Function<Response,? extends T> f)
Register a function to transform 'unauthorized' (401) HTTP responses.
|
| Constructor and Description |
|---|
ResponseTooLargeException(Response response,
String message) |
UnexpectedResponseException(Response response)
Creates a new exception for the given response.
|
Copyright © 2012–2024 Atlassian. All rights reserved.