Package com.logicaldoc.util.http
Class BaseHttpClientResponseHandler<T>
java.lang.Object
org.apache.hc.client5.http.impl.classic.AbstractHttpClientResponseHandler<T>
com.logicaldoc.util.http.BaseHttpClientResponseHandler<T>
- Type Parameters:
- T- The type of attended response content
- All Implemented Interfaces:
- org.apache.hc.core5.http.io.HttpClientResponseHandler<T>
- Direct Known Subclasses:
- FileHttpClientResponseHandler,- StreamHttpClientResponseHandler,- StringHttpClientResponseHandler
public abstract class BaseHttpClientResponseHandler<T>
extends org.apache.hc.client5.http.impl.classic.AbstractHttpClientResponseHandler<T>
An extension of the standard HttpClientReponseHandler with utility methods
- Since:
- 8.9.3
- Author:
- Marco Meschieri - LogicalDOC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringgetResponseBody(org.apache.hc.core5.http.ClassicHttpResponse response) static StringgetResponseBody(org.apache.hc.core5.http.ClassicHttpResponse response, Integer maxLength) Methods inherited from class org.apache.hc.client5.http.impl.classic.AbstractHttpClientResponseHandlerhandleEntity, handleResponse
- 
Constructor Details- 
BaseHttpClientResponseHandlerpublic BaseHttpClientResponseHandler()
 
- 
- 
Method Details- 
getResponseBodypublic static String getResponseBody(org.apache.hc.core5.http.ClassicHttpResponse response) throws IOException - Throws:
- IOException
 
- 
getResponseBodypublic static String getResponseBody(org.apache.hc.core5.http.ClassicHttpResponse response, Integer maxLength) throws IOException - Throws:
- IOException
 
 
-