| Package | Description |
|---|---|
| com.atlassian.sal.api.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() |
void |
ResponseHandler.handle(T response)
Triggered when response from
Request.execute(ResponseHandler) method becomes available. |
R |
ReturningResponseHandler.handle(T response)
Triggered when response from
Request.executeAndReturn(ReturningResponseHandler)
method becomes available. |
Copyright © 2018 Atlassian. All rights reserved.