Class ResponseHandlerXml

java.lang.Object
com.helger.httpclient.response.ResponseHandlerXml
All Implemented Interfaces:
org.apache.hc.core5.http.io.HttpClientResponseHandler<Document>

public class ResponseHandlerXml extends Object implements org.apache.hc.core5.http.io.HttpClientResponseHandler<Document>
Convert a valid HTTP response to a DOM Document object.
Author:
Philip Helger
  • Constructor Details

    • ResponseHandlerXml

      public ResponseHandlerXml()
  • 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 ResponseHandlerXml 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 Document handleResponse(@Nonnull org.apache.hc.core5.http.ClassicHttpResponse aHttpResponse) throws IOException
      Specified by:
      handleResponse in interface org.apache.hc.core5.http.io.HttpClientResponseHandler<Document>
      Throws:
      IOException