Package org.apache.http.client.fluent
Class Response
java.lang.Object
org.apache.http.client.fluent.Response
-
Method Summary
Modifier and TypeMethodDescriptionvoidDiscards response content and deallocates all resources associated with it.<T> ThandleResponse(org.apache.http.client.ResponseHandler<T> handler) Handles the response using the specifiedResponseHandlerorg.apache.http.HttpResponsevoidsaveContent(File file)
-
Method Details
-
discardContent
public void discardContent()Discards response content and deallocates all resources associated with it. -
handleResponse
public <T> T handleResponse(org.apache.http.client.ResponseHandler<T> handler) throws org.apache.http.client.ClientProtocolException, IOException Handles the response using the specifiedResponseHandler- Throws:
org.apache.http.client.ClientProtocolExceptionIOException
-
returnContent
- Throws:
org.apache.http.client.ClientProtocolExceptionIOException
-
returnResponse
- Throws:
IOException
-
saveContent
- Throws:
IOException
-