Package com.helger.httpclient.response
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandleResponse(org.apache.hc.core5.http.ClassicHttpResponse aHttpResponse) final booleanfinal ResponseHandlerXmlsetDebugMode(boolean bDebugMode) Enable or disable debug mode on demand.
-
Constructor Details
-
ResponseHandlerXml
public ResponseHandlerXml()
-
-
Method Details
-
isDebugMode
public final boolean isDebugMode()- Returns:
trueif debug mode is enabled,falseif not.- Since:
- 8.8.2
-
setDebugMode
Enable or disable debug mode on demand.- Parameters:
bDebugMode-trueto enable debug mode,falseto 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:
handleResponsein interfaceorg.apache.hc.core5.http.io.HttpClientResponseHandler<Document>- Throws:
IOException
-