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
ResponseHandler
ClientProtocolException
IOException
public Content returnContent() throws ClientProtocolException, IOException
ClientProtocolException
IOException
public org.apache.http.HttpResponse returnResponse() throws IOException
IOException
public void saveContent(File file) throws IOException
IOException
Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.