Package org.apache.http.client.fluent
Class Response
java.lang.Object
org.apache.http.client.fluent.Response
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Discards response content and deallocates all resources associated with it.<T> T
handleResponse
(org.apache.http.client.ResponseHandler<T> handler) Handles the response using the specifiedResponseHandler
org.apache.http.HttpResponse
void
saveContent
(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.ClientProtocolException
IOException
-
returnContent
- Throws:
org.apache.http.client.ClientProtocolException
IOException
-
returnResponse
- Throws:
IOException
-
saveContent
- Throws:
IOException
-