Class WebApiManagerFactory

java.lang.Object
org.codelibs.fess.api.WebApiManagerFactory

public class WebApiManagerFactory extends Object
Factory class for managing and retrieving web API managers. This factory maintains a collection of web API managers and provides functionality to find the appropriate manager for incoming requests.
  • Field Details

    • webApiManagers

      protected WebApiManager[] webApiManagers
      Array of registered web API managers.
  • Constructor Details

    • WebApiManagerFactory

      public WebApiManagerFactory()
      Default constructor.
  • Method Details

    • add

      public void add(WebApiManager webApiManager)
      Adds a web API manager to the factory.
      Parameters:
      webApiManager - The web API manager to add
    • get

      public WebApiManager get(jakarta.servlet.http.HttpServletRequest request)
      Gets the appropriate web API manager for the given request.
      Parameters:
      request - The HTTP servlet request
      Returns:
      The matching web API manager, or null if no match found