| Package | Description |
|---|---|
| com.atlassian.httpclient.api |
| Modifier and Type | Method and Description |
|---|---|
Response |
UnexpectedResponseException.getResponse()
Returns the unexpected response
|
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.util.concurrent.Promise<Response> |
HttpClient.execute(Request request)
Executes this request through the
HttpClient service. |
com.atlassian.util.concurrent.Promise<Response> |
ForwardingHttpClient.execute(Request request) |
| Modifier and Type | Method and Description |
|---|---|
abstract ResponseTransformation.Builder<O> |
ResponseTransformation.Builder.badRequest(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'bad request' (400) HTTP responses.
|
abstract ResponseTransformation.Builder<O> |
ResponseTransformation.Builder.clientError(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'client error' (4xx) HTTP responses.
|
abstract ResponseTransformation.Builder<O> |
ResponseTransformation.Builder.conflict(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'conflict' (409) HTTP responses.
|
abstract ResponseTransformation.Builder<O> |
ResponseTransformation.Builder.created(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'created' (201) HTTP responses.
|
abstract ResponseTransformation.Builder<O> |
ResponseTransformation.Builder.done(com.google.common.base.Function<Response,O> f)
Register a function to transform all completed (1xx, 2xx, 3xx, 4xx, and 5xx) HTTP responses.
|
abstract ResponseTransformation.Builder<O> |
ResponseTransformation.Builder.error(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform all error (4xx and 5xx) HTTP responses.
|
abstract ResponseTransformation.Builder<O> |
ResponseTransformation.Builder.forbidden(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'forbidden' (403) HTTP responses.
|
abstract ResponseTransformation.Builder<O> |
ResponseTransformation.Builder.informational(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'informational' (1xx) HTTP responses.
|
abstract ResponseTransformation.Builder<O> |
ResponseTransformation.Builder.internalServerError(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'internal server error' (500) HTTP responses.
|
abstract ResponseTransformation.Builder<O> |
ResponseTransformation.Builder.noContent(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'no content' (204) HTTP responses.
|
abstract ResponseTransformation.Builder<O> |
ResponseTransformation.Builder.notFound(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'not found' (404) HTTP responses.
|
abstract ResponseTransformation.Builder<O> |
ResponseTransformation.Builder.notModified(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'not modified' (304) HTTP responses.
|
abstract ResponseTransformation.Builder<O> |
ResponseTransformation.Builder.notSuccessful(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform all non-'successful' (1xx, 3xx, 4xx, 5xx) HTTP responses.
|
abstract ResponseTransformation.Builder<O> |
ResponseTransformation.Builder.ok(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'ok' (200) HTTP responses.
|
abstract ResponseTransformation.Builder<O> |
ResponseTransformation.Builder.on(HttpStatus status,
com.google.common.base.Function<Response,? extends O> f)
Register a function to transform HTTP responses with a specific status.
|
abstract ResponseTransformation.Builder<O> |
ResponseTransformation.Builder.on(int statusCode,
com.google.common.base.Function<Response,? extends O> f)
Register a function to transform HTTP responses with a specific status code.
|
abstract ResponseTransformation.Builder<O> |
ResponseTransformation.Builder.others(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform all other HTTP responses (i.e.
|
abstract ResponseTransformation.Builder<O> |
ResponseTransformation.Builder.redirection(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'redirection' (3xx) HTTP responses.
|
abstract ResponseTransformation.Builder<O> |
ResponseTransformation.Builder.seeOther(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'see other' (303) HTTP responses.
|
abstract ResponseTransformation.Builder<O> |
ResponseTransformation.Builder.serverError(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'server error' (5xx) HTTP responses.
|
abstract ResponseTransformation.Builder<O> |
ResponseTransformation.Builder.serviceUnavailable(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'service unavailable' (503) HTTP responses.
|
abstract ResponseTransformation.Builder<O> |
ResponseTransformation.Builder.successful(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'successful' (2xx) HTTP responses.
|
com.atlassian.util.concurrent.Promise<O> |
ResponseTransformation.transform(com.atlassian.util.concurrent.Promise<Response> promise) |
abstract ResponseTransformation.Builder<O> |
ResponseTransformation.Builder.unauthorized(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'unauthorized' (401) HTTP responses.
|
| Constructor and Description |
|---|
UnexpectedResponseException(Response response)
Creates a new exception for the given response.
|
Copyright © 2012-2013 Atlassian. All Rights Reserved.