|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HTTPResponse
Response information from a HTTP network call. Based on the Response
class of com.clarkparsia.utils.web.Response
.
Method Summary | |
---|---|
void |
close()
Close this response |
java.io.InputStream |
getContent()
Return the response content from the server |
java.io.InputStream |
getErrorStream()
Return the error stream from the connection |
java.lang.Exception |
getException()
Access to an underlying exception that may have been thrown upon failure to generate a response. |
java.util.Collection<java.lang.String> |
getHeaders()
Return all headers returned by the server |
java.lang.String |
getHeaderValue(java.lang.String headerName)
Returns the unparsed value of the HTTP header |
java.util.Collection<java.lang.String> |
getHeaderValues(java.lang.String headerName)
Returns the values of the HTTP header parsed on the comma delimiter |
java.lang.String |
getMessage()
Return the response message from the server |
int |
getResponseCode()
Return the response code |
java.lang.String |
getSSWAPExceptionHeader()
Returns the header being used for SSWAP Exceptions. |
java.util.Collection<java.lang.String> |
getSSWAPExceptionValues()
Returns values, if any, for the SSWAP Exception Header(s). |
boolean |
hasErrorCode()
Return whether or not this has an error result |
Method Detail |
---|
java.io.InputStream getErrorStream()
java.lang.String getMessage()
java.util.Collection<java.lang.String> getHeaders()
java.lang.String getHeaderValue(java.lang.String headerName)
headerName
- the header name
headerName
does not existjava.util.Collection<java.lang.String> getHeaderValues(java.lang.String headerName)
headerName
- the header name
headerName
does not existjava.util.Collection<java.lang.String> getSSWAPExceptionValues()
getSSWAPExceptionHeader()
java.lang.String getSSWAPExceptionHeader()
getSSWAPExceptionValues()
java.lang.Exception getException()
int getResponseCode()
java.io.InputStream getContent()
boolean hasErrorCode()
void close() throws java.io.IOException
java.io.IOException
- if there is an error while closing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |