Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- accept(HttpURLConnection) - Method in class org.codelibs.curl.CurlRequest.RequestProcessor
-
Processes the HTTP connection and handles the response.
B
- body - Variable in class org.codelibs.curl.CurlRequest
-
The body content of the request.
- body() - Method in class org.codelibs.curl.CurlRequest
-
Returns the body content of the request.
- body(InputStream) - Method in class org.codelibs.curl.CurlRequest
-
Sets the input stream for the request body.
- body(String) - Method in class org.codelibs.curl.CurlRequest
-
Sets the body content for the request.
- bodyStream - Variable in class org.codelibs.curl.CurlRequest
-
The input stream for the request body.
C
- close() - Method in class org.codelibs.curl.CurlResponse
-
Closes the content cache if it is not null.
- close() - Method in class org.codelibs.curl.io.ContentCache
- close() - Method in class org.codelibs.curl.io.ContentOutputStream
- compression - Variable in class org.codelibs.curl.CurlRequest
-
The compression type for the request.
- compression(String) - Method in class org.codelibs.curl.CurlRequest
-
Sets the compression type for the request.
- connect(String) - Static method in class org.codelibs.curl.Curl
-
Creates a new CurlRequest with the CONNECT method for the specified URL.
- connect(Consumer<HttpURLConnection>, Consumer<Exception>) - Method in class org.codelibs.curl.CurlRequest
-
Connects to the URL and executes the request.
- CONNECT - Enum constant in enum class org.codelibs.curl.Curl.Method
- ContentCache - Class in org.codelibs.curl.io
-
ContentCache is a class that provides a way to cache content either in memory or in a file.
- ContentCache(byte[]) - Constructor for class org.codelibs.curl.io.ContentCache
- ContentCache(File) - Constructor for class org.codelibs.curl.io.ContentCache
- ContentOutputStream - Class in org.codelibs.curl.io
-
ContentOutputStream is a custom output stream that extends DeferredFileOutputStream.
- ContentOutputStream(int, File) - Constructor for class org.codelibs.curl.io.ContentOutputStream
- Curl - Class in org.codelibs.curl
-
The Curl class provides a simple interface for creating HTTP requests using various HTTP methods.
- Curl() - Constructor for class org.codelibs.curl.Curl
- Curl.Method - Enum Class in org.codelibs.curl
-
Enumeration representing HTTP methods.
- CurlException - Exception in org.codelibs.curl
-
Custom exception class for handling errors related to Curl operations.
- CurlException(String) - Constructor for exception org.codelibs.curl.CurlException
- CurlException(String, Throwable) - Constructor for exception org.codelibs.curl.CurlException
- CurlRequest - Class in org.codelibs.curl
-
The CurlRequest class represents an HTTP request that can be configured and executed.
- CurlRequest(Curl.Method, String) - Constructor for class org.codelibs.curl.CurlRequest
-
Constructs a new CurlRequest with the specified HTTP method and URL.
- CurlRequest.RequestProcessor - Class in org.codelibs.curl
-
The RequestProcessor class processes the HTTP request and handles the response.
- CurlResponse - Class in org.codelibs.curl
-
The CurlResponse class represents the response from a cURL request.
- CurlResponse() - Constructor for class org.codelibs.curl.CurlResponse
D
- delete(String) - Static method in class org.codelibs.curl.Curl
-
Creates a new CurlRequest with the DELETE method for the specified URL.
- DELETE - Enum constant in enum class org.codelibs.curl.Curl.Method
- done - Variable in class org.codelibs.curl.io.ContentOutputStream
E
- encode(String) - Method in class org.codelibs.curl.CurlRequest
-
Encodes the specified value using the character encoding.
- encoding - Variable in class org.codelibs.curl.CurlRequest
-
The character encoding for the request.
- encoding() - Method in class org.codelibs.curl.CurlRequest
-
Returns the character encoding for the request.
- encoding(String) - Method in class org.codelibs.curl.CurlRequest
-
Sets the character encoding for the request.
- execute() - Method in class org.codelibs.curl.CurlRequest
-
Executes the request and returns the response.
- execute(Consumer<CurlResponse>, Consumer<Exception>) - Method in class org.codelibs.curl.CurlRequest
-
Executes the request and processes the response.
G
- get(String) - Static method in class org.codelibs.curl.Curl
-
Creates a new CurlRequest with the HTTP GET method for the specified URL.
- GET - Enum constant in enum class org.codelibs.curl.Curl.Method
- getContent(Function<CurlResponse, T>) - Method in class org.codelibs.curl.CurlResponse
-
Gets the content of the response using the provided parser function.
- getContentAsStream() - Method in class org.codelibs.curl.CurlResponse
-
Gets the content of the response as an InputStream.
- getContentAsString() - Method in class org.codelibs.curl.CurlResponse
-
Gets the content of the response as a string.
- getContentException() - Method in class org.codelibs.curl.CurlResponse
-
Gets the exception that occurred while accessing the content, if any.
- getEncoding() - Method in class org.codelibs.curl.CurlResponse
-
Gets the encoding used for the response content.
- getFile() - Method in class org.codelibs.curl.io.ContentOutputStream
- getHeaders() - Method in class org.codelibs.curl.CurlResponse
-
Gets the headers of the response.
- getHeaderValue(String) - Method in class org.codelibs.curl.CurlResponse
-
Gets the value of the specified header.
- getHeaderValues(String) - Method in class org.codelibs.curl.CurlResponse
-
Gets the values of the specified header.
- getHttpStatusCode() - Method in class org.codelibs.curl.CurlResponse
-
Gets the HTTP status code of the response.
- getInputStream() - Method in class org.codelibs.curl.io.ContentCache
-
Returns an InputStream to read the content from the cache.
- getResponse() - Method in class org.codelibs.curl.CurlRequest.RequestProcessor
-
Returns the CurlResponse.
- gzip() - Method in class org.codelibs.curl.CurlRequest
-
Enables GZIP compression for the request.
- GZIP - Static variable in class org.codelibs.curl.CurlRequest
-
The GZIP compression type.
H
- head(String) - Static method in class org.codelibs.curl.Curl
-
Creates a new CurlRequest with the HTTP HEAD method for the specified URL.
- HEAD - Enum constant in enum class org.codelibs.curl.Curl.Method
- header(String, String) - Method in class org.codelibs.curl.CurlRequest
-
Adds a request header.
- headerList - Variable in class org.codelibs.curl.CurlRequest
-
The list of request headers.
L
- logger - Static variable in class org.codelibs.curl.CurlRequest
-
Logger for logging request details.
- logger - Static variable in class org.codelibs.curl.io.ContentCache
- logger - Static variable in class org.codelibs.curl.io.ContentOutputStream
M
- method - Variable in class org.codelibs.curl.CurlRequest
-
The HTTP method for the request.
- method() - Method in class org.codelibs.curl.CurlRequest
-
Returns the HTTP method for the request.
O
- onConnect(BiConsumer<CurlRequest, HttpURLConnection>) - Method in class org.codelibs.curl.CurlRequest
-
Sets the connection builder for customizing the connection.
- open(URL) - Method in class org.codelibs.curl.CurlRequest
-
Opens a connection to the specified URL.
- options(String) - Static method in class org.codelibs.curl.Curl
-
Creates a new CurlRequest with the HTTP OPTIONS method for the specified URL.
- OPTIONS - Enum constant in enum class org.codelibs.curl.Curl.Method
- org.codelibs.curl - package org.codelibs.curl
- org.codelibs.curl.io - package org.codelibs.curl.io
- org.codelibs.curl4j - module org.codelibs.curl4j
P
- param(String, String) - Method in class org.codelibs.curl.CurlRequest
-
Adds a request parameter.
- paramList - Variable in class org.codelibs.curl.CurlRequest
-
The list of request parameters.
- post(String) - Static method in class org.codelibs.curl.Curl
-
Creates a new CurlRequest with the HTTP POST method for the specified URL.
- POST - Enum constant in enum class org.codelibs.curl.Curl.Method
- PREFIX - Static variable in class org.codelibs.curl.io.ContentOutputStream
- proxy - Variable in class org.codelibs.curl.CurlRequest
-
The proxy to be used for the HTTP request.
- proxy() - Method in class org.codelibs.curl.CurlRequest
-
Returns the proxy for the request.
- proxy(Proxy) - Method in class org.codelibs.curl.CurlRequest
-
Sets the proxy for the request.
- put(String) - Static method in class org.codelibs.curl.Curl
-
Creates a new CurlRequest with the HTTP PUT method for the specified URL.
- PUT - Enum constant in enum class org.codelibs.curl.Curl.Method
R
- RequestProcessor(String, int) - Constructor for class org.codelibs.curl.CurlRequest.RequestProcessor
-
Constructs a new RequestProcessor with the specified encoding and threshold.
- response - Variable in class org.codelibs.curl.CurlRequest.RequestProcessor
S
- setContentCache(ContentCache) - Method in class org.codelibs.curl.CurlResponse
-
Sets the content cache for the response.
- setContentException(Exception) - Method in class org.codelibs.curl.CurlResponse
-
Sets the exception that occurred while accessing the content.
- setEncoding(String) - Method in class org.codelibs.curl.CurlResponse
-
Sets the encoding for the response content.
- setHeaders(Map<String, List<String>>) - Method in class org.codelibs.curl.CurlResponse
-
Sets the headers for the response.
- setHttpStatusCode(int) - Method in class org.codelibs.curl.CurlResponse
-
Sets the HTTP status code for the response.
- sslSocketFactory - Variable in class org.codelibs.curl.CurlRequest
-
The SSL socket factory for secure connections.
- sslSocketFactory(SSLSocketFactory) - Method in class org.codelibs.curl.CurlRequest
-
Sets the SSL socket factory for secure connections.
- SUFFIX - Static variable in class org.codelibs.curl.io.ContentOutputStream
T
- threadPool - Variable in class org.codelibs.curl.CurlRequest
-
The thread pool for executing the request.
- threadPool(ForkJoinPool) - Method in class org.codelibs.curl.CurlRequest
-
Sets the thread pool for executing the request.
- threshold - Variable in class org.codelibs.curl.CurlRequest
-
The threshold size for the request body.
- threshold() - Method in class org.codelibs.curl.CurlRequest
-
Returns the threshold size for the request body.
- threshold(int) - Method in class org.codelibs.curl.CurlRequest
-
Sets the threshold size for the request body.
- tmpDir - Static variable in class org.codelibs.curl.Curl
- TRACE - Enum constant in enum class org.codelibs.curl.Curl.Method
U
- url - Variable in class org.codelibs.curl.CurlRequest
-
The URL for the HTTP request.
V
- valueOf(String) - Static method in enum class org.codelibs.curl.Curl.Method
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.codelibs.curl.Curl.Method
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form