Class Response
java.lang.Object
org.apache.hc.client5.http.fluent.Response
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidvoidDiscards response content and deallocates all resources associated with it.private voiddispose()<T> ThandleResponse(org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler) Handles the response using the specifiedHttpClientResponseHandlerorg.apache.hc.core5.http.HttpResponsevoidsaveContent(File file)
-
Field Details
-
response
private final org.apache.hc.core5.http.ClassicHttpResponse response -
consumed
private boolean consumed
-
-
Constructor Details
-
Response
Response(org.apache.hc.core5.http.ClassicHttpResponse response)
-
-
Method Details
-
assertNotConsumed
private void assertNotConsumed() -
dispose
- Throws:
IOException
-
discardContent
public void discardContent()Discards response content and deallocates all resources associated with it. -
handleResponse
public <T> T handleResponse(org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler) throws IOException Handles the response using the specifiedHttpClientResponseHandler- Throws:
IOException
-
returnContent
- Throws:
IOException
-
returnResponse
- Throws:
IOException
-
saveContent
- Throws:
IOException
-