public interface Response
Request.execute(ResponseHandler)| Modifier and Type | Method and Description |
|---|---|
<T> T |
getEntity(Class<T> entityClass)
Unmarshall the response body as the specified type
|
String |
getHeader(String name)
Get's the header by the given name
|
Map<String,String> |
getHeaders()
Get a map of all the headers
|
InputStream |
getResponseBodyAsStream() |
String |
getResponseBodyAsString() |
int |
getStatusCode() |
String |
getStatusText() |
boolean |
isSuccessful() |
int getStatusCode()
String getResponseBodyAsString() throws ResponseException
ResponseException - If the response cannot be retrievedInputStream getResponseBodyAsStream() throws ResponseException
ResponseException - If the response cannot be retrieved<T> T getEntity(Class<T> entityClass) throws ResponseException
entityClass - the type of the responseResponseException - if there was difficulty reading the response or unmarshalling the objectString getStatusText()
boolean isSuccessful()
String getHeader(String name)
name - The name of the headernull is returned.Copyright © 2019 Atlassian. All rights reserved.