Class FileHttpClientResponseHandler

java.lang.Object
org.apache.hc.client5.http.impl.classic.AbstractHttpClientResponseHandler<T>
com.logicaldoc.util.http.LoggingHttpClientResponseHandler<String>
com.logicaldoc.util.http.FileHttpClientResponseHandler
All Implemented Interfaces:
org.apache.hc.core5.http.io.HttpClientResponseHandler<String>

public class FileHttpClientResponseHandler extends LoggingHttpClientResponseHandler<String>
A HTTP response handler that writes the response into a given file
Since:
8.9.3
Author:
Marco Meschieri - LogicalDOC
  • Constructor Details

    • FileHttpClientResponseHandler

      public FileHttpClientResponseHandler(File file)
  • Method Details

    • handleEntity

      public String handleEntity(org.apache.hc.core5.http.HttpEntity entity) throws IOException
      Specified by:
      handleEntity in class org.apache.hc.client5.http.impl.classic.AbstractHttpClientResponseHandler<String>
      Throws:
      IOException