Package com.helger.httpclient.response
Class ResponseHandlerHttpEntity
java.lang.Object
com.helger.httpclient.response.ResponseHandlerHttpEntity
- All Implemented Interfaces:
org.apache.hc.core5.http.io.HttpClientResponseHandler<org.apache.hc.core5.http.HttpEntity>
public class ResponseHandlerHttpEntity
extends Object
implements org.apache.hc.core5.http.io.HttpClientResponseHandler<org.apache.hc.core5.http.HttpEntity>
Base response handler that checks the status code and handles only status
codes < 300.
- Since:
- 8.7.2
- Author:
- Philip Helger
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResponseHandlerHttpEntityThe global default instance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hc.core5.http.HttpEntityhandleResponse(org.apache.hc.core5.http.ClassicHttpResponse aHttpResponse)
-
Field Details
-
INSTANCE
The global default instance.
-
-
Constructor Details
-
ResponseHandlerHttpEntity
protected ResponseHandlerHttpEntity()
-
-
Method Details
-
handleResponse
@Nullable public org.apache.hc.core5.http.HttpEntity handleResponse(@Nonnull org.apache.hc.core5.http.ClassicHttpResponse aHttpResponse) throws IOException - Specified by:
handleResponsein interfaceorg.apache.hc.core5.http.io.HttpClientResponseHandler<org.apache.hc.core5.http.HttpEntity>- Throws:
IOException
-