Package org.apache.solr.core
Class RequestHandlers
java.lang.Object
org.apache.solr.core.RequestHandlers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Returns an unmodifiable Map containing the registered handlersstatic StringTrim the trailing '/' if it's there, and convert null to empty string.register(String handlerName, SolrRequestHandler handler) Handlers must be initialized before calling this function.
-
Constructor Details
-
RequestHandlers
-
-
Method Details
-
normalize
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
- Returns:
- the RequestHandler registered at the given name
-
register
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
Returns an unmodifiable Map containing the registered handlers -
close
public void close()
-