Class ResponseHandlerMicroDom

java.lang.Object
com.helger.httpclient.response.ResponseHandlerMicroDom
All Implemented Interfaces:
org.apache.hc.core5.http.io.HttpClientResponseHandler<com.helger.xml.microdom.IMicroDocument>

public class ResponseHandlerMicroDom extends Object implements org.apache.hc.core5.http.io.HttpClientResponseHandler<com.helger.xml.microdom.IMicroDocument>
Convert a valid HTTP response to an IMicroDocument object.
Author:
Philip Helger
  • Constructor Details

    • ResponseHandlerMicroDom

      public ResponseHandlerMicroDom()
  • Method Details

    • isDebugMode

      public final boolean isDebugMode()
      Returns:
      true if debug mode is enabled, false if not.
      Since:
      8.8.2
    • setDebugMode

      @Nonnull public final ResponseHandlerMicroDom setDebugMode(boolean bDebugMode)
      Enable or disable debug mode on demand.
      Parameters:
      bDebugMode - true to enable debug mode, false to disable it.
      Returns:
      this for chaining
      Since:
      10.0.0
    • handleResponse

      @Nullable public com.helger.xml.microdom.IMicroDocument handleResponse(@Nonnull org.apache.hc.core5.http.ClassicHttpResponse aHttpResponse) throws IOException
      Specified by:
      handleResponse in interface org.apache.hc.core5.http.io.HttpClientResponseHandler<com.helger.xml.microdom.IMicroDocument>
      Throws:
      IOException