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 Details

    • BaseHttpClientResponseHandler

      public BaseHttpClientResponseHandler()
  • Method Details

    • getResponseBody

      public static String getResponseBody(org.apache.hc.core5.http.ClassicHttpResponse response) throws IOException
      Throws:
      IOException
    • getResponseBody

      public static String getResponseBody(org.apache.hc.core5.http.ClassicHttpResponse response, Integer maxLength) throws IOException
      Throws:
      IOException