Package com.helger.phase4.messaging.http
Class GenericAS4HttpResponseHandler
java.lang.Object
com.helger.phase4.messaging.http.GenericAS4HttpResponseHandler
- All Implemented Interfaces:
org.apache.hc.core5.http.io.HttpClientResponseHandler<GenericAS4HttpResponseHandler.HttpResponseData>
public class GenericAS4HttpResponseHandler
extends Object
implements org.apache.hc.core5.http.io.HttpClientResponseHandler<GenericAS4HttpResponseHandler.HttpResponseData>
This is a specific HTTP client response handler. Compared to the default ones I usually use, it
can pass through content even if an HTTP error occurred.
- Since:
- 4.1.1
- Author:
- Philip Helger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull org.apache.hc.core5.http.io.HttpClientResponseHandler<byte[]> static @NonNull org.apache.hc.core5.http.io.HttpClientResponseHandler<com.helger.xml.microdom.IMicroDocument> handleResponse(@NonNull org.apache.hc.core5.http.ClassicHttpResponse aHttpResponse)
-
Field Details
-
INSTANCE
-
-
Method Details
-
handleResponse
public @NonNull GenericAS4HttpResponseHandler.HttpResponseData handleResponse(@NonNull org.apache.hc.core5.http.ClassicHttpResponse aHttpResponse) throws com.helger.httpclient.response.ExtendedHttpResponseException, IOException - Specified by:
handleResponsein interfaceorg.apache.hc.core5.http.io.HttpClientResponseHandler<GenericAS4HttpResponseHandler.HttpResponseData>- Throws:
com.helger.httpclient.response.ExtendedHttpResponseExceptionIOException
-
getHandlerByteArray
public static @NonNull org.apache.hc.core5.http.io.HttpClientResponseHandler<byte[]> getHandlerByteArray() -
getHandlerMicroDom
public static @NonNull org.apache.hc.core5.http.io.HttpClientResponseHandler<com.helger.xml.microdom.IMicroDocument> getHandlerMicroDom()
-