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(org.apache.http.client.ResponseHandler<T> handler)
Handles the response using the specified
ResponseHandler |
Content |
returnContent() |
org.apache.http.HttpResponse |
returnResponse() |
void |
saveContent(java.io.File file) |
public void discardContent()
public <T> T handleResponse(org.apache.http.client.ResponseHandler<T> handler)
throws org.apache.http.client.ClientProtocolException,
java.io.IOException
ResponseHandlerorg.apache.http.client.ClientProtocolExceptionjava.io.IOExceptionpublic Content returnContent() throws org.apache.http.client.ClientProtocolException, java.io.IOException
org.apache.http.client.ClientProtocolExceptionjava.io.IOExceptionpublic org.apache.http.HttpResponse returnResponse()
throws java.io.IOException
java.io.IOExceptionpublic void saveContent(java.io.File file)
throws java.io.IOException
java.io.IOException