Class CurlRequest.RequestProcessor

java.lang.Object
org.codelibs.curl.CurlRequest.RequestProcessor
All Implemented Interfaces:
Consumer<HttpURLConnection>
Enclosing class:
CurlRequest

public static class CurlRequest.RequestProcessor extends Object implements Consumer<HttpURLConnection>
The RequestProcessor class processes the HTTP request and handles the response.
  • Field Details

  • Constructor Details

    • RequestProcessor

      public RequestProcessor(String encoding, int threshold)
      Constructs a new RequestProcessor with the specified encoding and threshold.
      Parameters:
      encoding - the character encoding
      threshold - the threshold size
  • Method Details

    • getResponse

      public CurlResponse getResponse()
      Returns the CurlResponse.
      Returns:
      the response
    • accept

      public void accept(HttpURLConnection con)
      Processes the HTTP connection and handles the response.
      Specified by:
      accept in interface Consumer<HttpURLConnection>
      Parameters:
      con - the HttpURLConnection