Package org.codelibs.fess.helper
Class CurlHelper
java.lang.Object
org.codelibs.fess.helper.CurlHelper
Helper class for managing HTTP requests using cURL-like operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.codelibs.curl.CurlRequestCreates a DELETE request for the specified path.org.codelibs.curl.CurlRequestCreates a GET request for the specified path.voidinit()Initializes the CurlHelper with SSL configuration and node manager.org.codelibs.curl.CurlRequestCreates a POST request for the specified path.org.codelibs.curl.CurlRequestCreates a PUT request for the specified path.org.codelibs.curl.CurlRequestCreates a request with the specified HTTP method and path.protected org.codelibs.curl.CurlRequestrequest(org.codelibs.curl.CurlRequest request) Configures the request with authentication and SSL settings.
-
Constructor Details
-
CurlHelper
public CurlHelper()Default constructor.
-
-
Method Details
-
init
@PostConstruct public void init()Initializes the CurlHelper with SSL configuration and node manager. -
get
Creates a GET request for the specified path.- Parameters:
path- the request path- Returns:
- the configured CurlRequest
-
post
Creates a POST request for the specified path.- Parameters:
path- the request path- Returns:
- the configured CurlRequest
-
put
Creates a PUT request for the specified path.- Parameters:
path- the request path- Returns:
- the configured CurlRequest
-
delete
Creates a DELETE request for the specified path.- Parameters:
path- the request path- Returns:
- the configured CurlRequest
-
request
Creates a request with the specified HTTP method and path.- Parameters:
method- the HTTP methodpath- the request path- Returns:
- the configured CurlRequest
-
request
protected org.codelibs.curl.CurlRequest request(org.codelibs.curl.CurlRequest request) Configures the request with authentication and SSL settings.- Parameters:
request- the request to configure- Returns:
- the configured request
-