public class Response
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
discardContent()
Discards response content and deallocates all resources associated with it.
|
<T> T |
handleResponse(ResponseHandler<T> handler)
Handles the response using the specified
ResponseHandler |
Content |
returnContent() |
HttpResponse |
returnResponse() |
void |
saveContent(java.io.File file) |
public void discardContent()
public <T> T handleResponse(ResponseHandler<T> handler) throws ClientProtocolException, java.io.IOException
ResponseHandlerClientProtocolExceptionjava.io.IOExceptionpublic Content returnContent() throws ClientProtocolException, java.io.IOException
ClientProtocolExceptionjava.io.IOExceptionpublic HttpResponse returnResponse() throws java.io.IOException
java.io.IOExceptionpublic void saveContent(java.io.File file)
throws java.io.IOException
java.io.IOException