public class JerseyResponse extends Object implements com.atlassian.sal.api.net.Response
| Constructor and Description |
|---|
JerseyResponse(com.atlassian.sal.api.net.Response delegateResponse,
JerseyEntityHandler jerseyEntityHandler,
com.atlassian.plugin.Plugin plugin) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getEntity(Class<T> entityClass) |
String |
getHeader(String s) |
Map<String,String> |
getHeaders() |
InputStream |
getResponseBodyAsStream() |
String |
getResponseBodyAsString() |
int |
getStatusCode() |
String |
getStatusText() |
boolean |
isSuccessful() |
public JerseyResponse(com.atlassian.sal.api.net.Response delegateResponse,
JerseyEntityHandler jerseyEntityHandler,
com.atlassian.plugin.Plugin plugin)
public <T> T getEntity(Class<T> entityClass) throws com.atlassian.sal.api.net.ResponseException
getEntity in interface com.atlassian.sal.api.net.Responsecom.atlassian.sal.api.net.ResponseExceptionpublic int getStatusCode()
getStatusCode in interface com.atlassian.sal.api.net.Responsepublic String getResponseBodyAsString() throws com.atlassian.sal.api.net.ResponseException
getResponseBodyAsString in interface com.atlassian.sal.api.net.Responsecom.atlassian.sal.api.net.ResponseExceptionpublic InputStream getResponseBodyAsStream() throws com.atlassian.sal.api.net.ResponseException
getResponseBodyAsStream in interface com.atlassian.sal.api.net.Responsecom.atlassian.sal.api.net.ResponseExceptionpublic String getStatusText()
getStatusText in interface com.atlassian.sal.api.net.Responsepublic boolean isSuccessful()
isSuccessful in interface com.atlassian.sal.api.net.Responsepublic String getHeader(String s)
getHeader in interface com.atlassian.sal.api.net.ResponseCopyright © 2016 Atlassian. All rights reserved.