| java.lang.Object org.apache.solr.core.RequestHandlers
RequestHandlers | final class RequestHandlers (Code) | | author: yonik |
DEFAULT_HANDLER_NAME | final public static String DEFAULT_HANDLER_NAME(Code) | | |
initHandlersFromConfig | void initHandlersFromConfig(Config config)(Code) | | Read solrconfig.xml and register the appropriate handlers
This function should only be called from the SolrCore constructor. It is
not intended as a public API.
While the normal runtime registration contract is that handlers MUST be initalizad
before they are registered, this function does not do that exactly.
This funciton registers all handlers first and then calls init() for each one.
This is OK because this function is only called at startup and there is no chance that
a handler could be asked to handle a request before it is initalized.
The advantage to this approach is that handlers can know what path they are registered
to and what other handlers are avaliable at startup.
Handlers will be registered and initalized in the order they appear in solrconfig.xml
|
register | public SolrRequestHandler register(String handlerName, SolrRequestHandler handler)(Code) | | Handlers must be initalized before calling this function. As soon as this is
called, the handler can immediatly accept requests.
This call is thread safe.
the previous handler at the given path or null |
|
|