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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRequestProcessor(String encoding, int threshold) Constructs a new RequestProcessor with the specified encoding and threshold. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(HttpURLConnection con) Processes the HTTP connection and handles the response.Returns the CurlResponse.
-
Field Details
-
response
-
-
Constructor Details
-
RequestProcessor
Constructs a new RequestProcessor with the specified encoding and threshold.- Parameters:
encoding- the character encodingthreshold- the threshold size
-
-
Method Details
-
getResponse
Returns the CurlResponse.- Returns:
- the response
-
accept
Processes the HTTP connection and handles the response.- Specified by:
acceptin interfaceConsumer<HttpURLConnection>- Parameters:
con- the HttpURLConnection
-