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(HttpClientResponseHandler<T> handler)
Handles the response using the specified
HttpClientResponseHandler |
Content |
returnContent() |
HttpResponse |
returnResponse() |
void |
saveContent(File file) |
public void discardContent()
public <T> T handleResponse(HttpClientResponseHandler<T> handler) throws IOException
HttpClientResponseHandlerIOExceptionpublic Content returnContent() throws IOException
IOExceptionpublic HttpResponse returnResponse() throws IOException
IOExceptionpublic void saveContent(File file) throws IOException
IOExceptionCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.