Package | Description |
---|---|
com.atlassian.sal.api.net | |
com.atlassian.sal.core.net | |
com.atlassian.sal.testresources.net |
Modifier and Type | Class and Description |
---|---|
class |
ResponseConnectTimeoutException
Thrown by
Request methods to indicate that the request failed because a
connection could not be established within the timeout interval. |
class |
ResponseProtocolException
Thrown by
Request methods to indicate that the request failed because the
server did not comply with the request protocol. |
class |
ResponseReadTimeoutException
Thrown by
Request methods to indicate that the request failed because the
server did not respond within the timeout interval after a connection was made. |
class |
ResponseStatusException
Thrown by
Request.execute() to indicate that the request was unsuccessful
based on the response's status code. |
class |
ResponseTimeoutException
Thrown by
Request methods to indicate that the request failed because the
server did not response in time. |
class |
ResponseTransportException
Thrown by
Request methods to indicate that the request failed because of
an I/O error in the underlying protocol. |
Modifier and Type | Method and Description |
---|---|
String |
Request.execute()
Executes a request and if response is successful, returns response as a string.
|
void |
Request.execute(ResponseHandler<? super RESP> responseHandler)
Executes the request.
|
<RET> RET |
Request.executeAndReturn(ReturningResponseHandler<? super RESP,RET> responseHandler)
Executes the request and returns a result value.
|
<T> T |
Response.getEntity(Class<T> entityClass)
Unmarshall the response body as the specified type
|
InputStream |
Response.getResponseBodyAsStream() |
String |
Response.getResponseBodyAsString() |
R |
ReturningResponseHandler.handle(T response)
Triggered when response from
Request.executeAndReturn(ReturningResponseHandler)
method becomes available. |
void |
ResponseHandler.handle(T response)
Triggered when response from
Request.execute(ResponseHandler) method becomes available. |
Modifier and Type | Method and Description |
---|---|
String |
HttpClientRequest.execute() |
void |
HttpClientTrustedRequest.execute(ResponseHandler responseHandler) |
void |
HttpClientRequest.execute(ResponseHandler<? super HttpClientResponse> responseHandler) |
Object |
HttpClientTrustedRequest.executeAndReturn(ReturningResponseHandler responseHandler) |
<RET> RET |
HttpClientRequest.executeAndReturn(ReturningResponseHandler<? super HttpClientResponse,RET> responseHandler) |
<T> T |
HttpClientResponse.getEntity(Class<T> entityClass) |
InputStream |
HttpClientResponse.getResponseBodyAsStream() |
String |
HttpClientResponse.getResponseBodyAsString() |
Modifier and Type | Method and Description |
---|---|
String |
MockRequest.execute() |
void |
MockRequest.execute(ResponseHandler<? super MockResponse> responseHandler) |
<RET> RET |
MockRequest.executeAndReturn(ReturningResponseHandler<? super MockResponse,RET> responseHandler) |
<T> T |
MockResponse.getEntity(Class<T> entityClass) |
Copyright © 2015 Atlassian. All rights reserved.