Class CurlHelper

java.lang.Object
org.codelibs.fess.helper.CurlHelper

public class CurlHelper extends Object
Helper class for managing HTTP requests using cURL-like operations.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.codelibs.curl.CurlRequest
    delete(String path)
    Creates a DELETE request for the specified path.
    org.codelibs.curl.CurlRequest
    get(String path)
    Creates a GET request for the specified path.
    void
    Initializes the CurlHelper with SSL configuration and node manager.
    org.codelibs.curl.CurlRequest
    post(String path)
    Creates a POST request for the specified path.
    org.codelibs.curl.CurlRequest
    put(String path)
    Creates a PUT request for the specified path.
    org.codelibs.curl.CurlRequest
    request(org.codelibs.curl.Curl.Method method, String path)
    Creates a request with the specified HTTP method and path.
    protected org.codelibs.curl.CurlRequest
    request(org.codelibs.curl.CurlRequest request)
    Configures the request with authentication and SSL settings.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CurlHelper

      public CurlHelper()
      Default constructor.
  • Method Details

    • init

      @PostConstruct public void init()
      Initializes the CurlHelper with SSL configuration and node manager.
    • get

      public org.codelibs.curl.CurlRequest get(String path)
      Creates a GET request for the specified path.
      Parameters:
      path - the request path
      Returns:
      the configured CurlRequest
    • post

      public org.codelibs.curl.CurlRequest post(String path)
      Creates a POST request for the specified path.
      Parameters:
      path - the request path
      Returns:
      the configured CurlRequest
    • put

      public org.codelibs.curl.CurlRequest put(String path)
      Creates a PUT request for the specified path.
      Parameters:
      path - the request path
      Returns:
      the configured CurlRequest
    • delete

      public org.codelibs.curl.CurlRequest delete(String path)
      Creates a DELETE request for the specified path.
      Parameters:
      path - the request path
      Returns:
      the configured CurlRequest
    • request

      public org.codelibs.curl.CurlRequest request(org.codelibs.curl.Curl.Method method, String path)
      Creates a request with the specified HTTP method and path.
      Parameters:
      method - the HTTP method
      path - 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