Class HttpModule

  extended by
      extended by com.twitter.common.application.modules.HttpModule
All Implemented Interfaces:

public class HttpModule
extends AbstractModule

Binding module for injections related to the HTTP server and the default set of servlets. This module uses a single command line argument 'http_port'. If unset, the HTTP server will be started on an ephemeral port. The default HTTP server includes several generic servlets that are useful for debugging. This class also offers several convenience methods for other modules to register HTTP servlets which will be included in the HTTP server configuration. Bindings provided by this module:

Bindings that may be overridden with an override module:

Nested Class Summary
static class HttpModule.HttpServerLauncher
Field Summary
protected static  HTTP_PORT
Constructor Summary
Method Summary
protected  void configure()
Methods inherited from class
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail



Constructor Detail


public HttpModule()
Method Detail


protected void configure()
Specified by:
configure in class AbstractModule