org.elasticsearch.rest
Class RestController

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.common.component.AbstractLifecycleComponent<RestController>
          extended by org.elasticsearch.rest.RestController
All Implemented Interfaces:
CloseableComponent, LifecycleComponent<RestController>

public class RestController
extends AbstractLifecycleComponent<RestController>


Field Summary
 
Fields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
lifecycle
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
RestController(Settings settings)
           
 
Method Summary
 boolean dispatchRequest(RestRequest request, RestChannel channel)
           
protected  void doClose()
           
protected  void doStart()
           
protected  void doStop()
           
 void registerHandler(RestRequest.Method method, java.lang.String path, RestHandler handler)
           
 
Methods inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
 
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestController

@Inject
public RestController(Settings settings)
Method Detail

doStart

protected void doStart()
                throws ElasticSearchException
Specified by:
doStart in class AbstractLifecycleComponent<RestController>
Throws:
ElasticSearchException

doStop

protected void doStop()
               throws ElasticSearchException
Specified by:
doStop in class AbstractLifecycleComponent<RestController>
Throws:
ElasticSearchException

doClose

protected void doClose()
                throws ElasticSearchException
Specified by:
doClose in class AbstractLifecycleComponent<RestController>
Throws:
ElasticSearchException

registerHandler

public void registerHandler(RestRequest.Method method,
                            java.lang.String path,
                            RestHandler handler)

dispatchRequest

public boolean dispatchRequest(RestRequest request,
                               RestChannel channel)