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
  • Field Details

  • 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:
      handleResponse in interface org.apache.hc.core5.http.io.HttpClientResponseHandler<GenericAS4HttpResponseHandler.HttpResponseData>
      Throws:
      com.helger.httpclient.response.ExtendedHttpResponseException
      IOException
    • 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()