public class Response extends 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() |
org.apache.http.HttpResponse |
returnResponse() |
void |
saveContent(File file) |
public void discardContent()
public <T> T handleResponse(ResponseHandler<T> handler) throws ClientProtocolException, IOException
ResponseHandlerClientProtocolExceptionIOExceptionpublic Content returnContent() throws ClientProtocolException, IOException
ClientProtocolExceptionIOExceptionpublic org.apache.http.HttpResponse returnResponse()
throws IOException
IOExceptionpublic void saveContent(File file) throws IOException
IOExceptionCopyright © 1999–2022 The Apache Software Foundation. All rights reserved.