| Package | Description |
|---|---|
| com.atlassian.httpclient.api |
| Modifier and Type | Method and Description |
|---|---|
Response |
UnexpectedResponseException.getResponse()
Returns the unexpected response
|
Response |
Response.setContentCharset(java.lang.String contentCharset) |
Response |
Response.setContentType(java.lang.String contentType) |
Response |
Response.setEntity(java.lang.String entity) |
Response |
Response.setEntityStream(java.io.InputStream entityStream) |
Response |
Response.setEntityStream(java.io.InputStream entityStream,
java.lang.String encoding) |
Response |
Response.setHeader(java.lang.String name,
java.lang.String value) |
Response |
Response.setHeaders(java.util.Map<java.lang.String,java.lang.String> headers) |
Response |
Response.setStatusCode(int statusCode)
Sets the status code of the response.
|
Response |
Response.setStatusText(java.lang.String statusText)
Sets the status text of the response.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> com.google.common.base.Function<Response,T> |
ResponsePromises.newUnexpectedResponseFunction() |
| Modifier and Type | Method and Description |
|---|---|
ResponseTransformation<O> |
ResponseTransformation.badRequest(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'bad request' (400) HTTP responses.
|
ResponseTransformation<O> |
ResponseTransformation.clientError(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'client error' (4xx) HTTP responses.
|
ResponseTransformation<O> |
ResponseTransformation.conflict(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'conflict' (409) HTTP responses.
|
ResponseTransformation<O> |
ResponseTransformation.created(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'created' (201) HTTP responses.
|
ResponseTransformation<O> |
ResponseTransformation.done(com.google.common.base.Function<Response,O> f)
Register a function to transform all completed (1xx, 2xx, 3xx, 4xx, and 5xx) HTTP responses.
|
ResponseTransformation<O> |
ResponseTransformation.error(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform all error (4xx and 5xx) HTTP responses.
|
ResponseTransformation<O> |
ResponseTransformation.forbidden(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'forbidden' (403) HTTP responses.
|
ResponseTransformation<O> |
ResponseTransformation.informational(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'informational' (1xx) HTTP responses.
|
ResponseTransformation<O> |
ResponseTransformation.internalServerError(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'internal server error' (500) HTTP responses.
|
ResponseTransformation<O> |
ResponseTransformation.noContent(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'no content' (204) HTTP responses.
|
ResponseTransformation<O> |
ResponseTransformation.notFound(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'not found' (404) HTTP responses.
|
ResponseTransformation<O> |
ResponseTransformation.notModified(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'not modified' (304) HTTP responses.
|
ResponseTransformation<O> |
ResponseTransformation.notSuccessful(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform all non-'successful' (1xx, 3xx, 4xx, 5xx) HTTP responses.
|
ResponseTransformation<O> |
ResponseTransformation.ok(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'ok' (200) HTTP responses.
|
ResponseTransformation<O> |
ResponseTransformation.on(HttpStatus status,
com.google.common.base.Function<Response,? extends O> f)
Register a function to transform HTTP responses with a specific status.
|
ResponseTransformation<O> |
ResponseTransformation.on(int statusCode,
com.google.common.base.Function<Response,? extends O> f)
Register a function to transform HTTP responses with a specific status code.
|
ResponseTransformation<O> |
ResponseTransformation.others(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform all other HTTP responses (i.e.
|
ResponseTransformation<O> |
ResponseTransformation.redirection(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'redirection' (3xx) HTTP responses.
|
ResponseTransformation<O> |
ResponseTransformation.seeOther(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'see other' (303) HTTP responses.
|
ResponseTransformation<O> |
ResponseTransformation.serverError(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'server error' (5xx) HTTP responses.
|
ResponseTransformation<O> |
ResponseTransformation.serviceUnavailable(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'service unavailable' (503) HTTP responses.
|
ResponseTransformation<O> |
ResponseTransformation.successful(com.google.common.base.Function<Response,? extends O> f)
Register a function to transform 'successful' (2xx) HTTP responses.
|
static ResponsePromise |
ResponsePromises.toResponsePromise(com.atlassian.util.concurrent.Promise<Response> promise) |
ResponseTransformation<O> |
ResponseTransformation.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.