org.apache.solr.core
Class RequestHandlers

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

public final class RequestHandlers
extends Object


Nested Class Summary
static class RequestHandlers.LazyRequestHandlerWrapper
          The LazyRequestHandlerWrapper wraps any SolrRequestHandler.
 
Field Summary
protected  SolrCore core
           
static org.slf4j.Logger log
           
 
Constructor Summary
RequestHandlers(SolrCore core)
           
 
Method Summary
 SolrRequestHandler get(String handlerName)
           
<T extends SolrRequestHandler>
Map<String,T>
getAll(Class<T> clazz)
           
 Map<String,SolrRequestHandler> getRequestHandlers()
          Returns an unmodifiable Map containing the registered handlers
 SolrRequestHandler register(String handlerName, SolrRequestHandler handler)
          Handlers must be initialized before calling this function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static org.slf4j.Logger log

core

protected final SolrCore core
Constructor Detail

RequestHandlers

public RequestHandlers(SolrCore core)
Method Detail

get

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

getAll

public <T extends SolrRequestHandler> Map<String,T> getAll(Class<T> clazz)
Returns:
a Map of all registered handlers of the specified type.

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 Map<String,SolrRequestHandler> getRequestHandlers()
Returns an unmodifiable Map containing the registered handlers



Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.