Class RequestHandlers

java.lang.Object
org.apache.solr.core.RequestHandlers

public final class RequestHandlers extends Object
  • Constructor Details

    • RequestHandlers

      public RequestHandlers(SolrCore core)
  • Method Details

    • normalize

      public static String normalize(String p)
      Trim the trailing '/' if it's there, and convert null to empty string.

      we want: /update/csv and /update/csv/ to map to the same handler

    • get

      public SolrRequestHandler get(String handlerName)
      Returns:
      the RequestHandler registered at the given name
    • register

      public SolrRequestHandler register(String handlerName, SolrRequestHandler handler)
      Handlers must be initialized before calling this function. As soon as this is called, the handler can immediately accept requests.

      This call is thread safe.

      Returns:
      the previous handler at the given path or null
    • getRequestHandlers

      public PluginBag<SolrRequestHandler> getRequestHandlers()
      Returns an unmodifiable Map containing the registered handlers
    • close

      public void close()