com.twitter.common.application.modules
Class HttpModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by com.twitter.common.application.modules.HttpModule
All Implemented Interfaces:
Module

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
HttpModule()
           
 
Method Summary
protected  void configure()
           
 
Methods inherited from class com.google.inject.AbstractModule
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

HTTP_PORT


HTTP_PRIMARY_SERVICE

Constructor Detail

HttpModule

public HttpModule()
Method Detail

configure

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