Package org.apache.http.client.fluent
Class Response
- java.lang.Object
-
- org.apache.http.client.fluent.Response
-
public class Response extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddiscardContent()Discards response content and deallocates all resources associated with it.<T> ThandleResponse(ResponseHandler<T> handler)Handles the response using the specifiedResponseHandlerContentreturnContent()HttpResponsereturnResponse()voidsaveContent(File file)
-
-
-
Method Detail
-
discardContent
public void discardContent()
Discards response content and deallocates all resources associated with it.
-
handleResponse
public <T> T handleResponse(ResponseHandler<T> handler) throws ClientProtocolException, IOException
Handles the response using the specifiedResponseHandler- Throws:
ClientProtocolExceptionIOException
-
returnContent
public Content returnContent() throws ClientProtocolException, IOException
- Throws:
ClientProtocolExceptionIOException
-
returnResponse
public HttpResponse returnResponse() throws IOException
- Throws:
IOException
-
saveContent
public void saveContent(File file) throws IOException
- Throws:
IOException
-
-