Package com.google.inject.servlet
Class InternalServletModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- com.google.inject.servlet.InternalServletModule
-
- All Implemented Interfaces:
Module
final class InternalServletModule extends AbstractModule
This is a left-factoring of all ServletModules installed in the system. In other words, this module contains the bindings common to all ServletModules, and is bound exactly once per injector.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classInternalServletModule.BackwardsCompatibleServletContextProviderSpecial Provider that tries to obtain an injected servlet context, specific to the current injector, failing which, it falls back to the static singleton instance that is available in the legacy Guice Servlet.
-
Constructor Summary
Constructors Constructor Description InternalServletModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigure()Configures aBindervia the exposed methods.booleanequals(java.lang.Object o)inthashCode()(package private) javax.servlet.http.HttpServletRequestprovideHttpServletRequest()(package private) javax.servlet.http.HttpServletResponseprovideHttpServletResponse()(package private) javax.servlet.http.HttpSessionprovideHttpSession()(package private) java.util.Map<java.lang.String,java.lang.String[]>provideRequestParameters(javax.servlet.ServletRequest req)(package private) GuiceFilterprovideScopingOnlyGuiceFilter()-
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
-
-
-
Method Detail
-
configure
protected void configure()
Description copied from class:AbstractModuleConfigures aBindervia the exposed methods.- Overrides:
configurein classAbstractModule
-
provideScopingOnlyGuiceFilter
@Provides GuiceFilter provideScopingOnlyGuiceFilter()
-
provideHttpServletRequest
@Provides javax.servlet.http.HttpServletRequest provideHttpServletRequest()
-
provideHttpServletResponse
@Provides javax.servlet.http.HttpServletResponse provideHttpServletResponse()
-
provideHttpSession
@Provides javax.servlet.http.HttpSession provideHttpSession()
-
provideRequestParameters
@Provides java.util.Map<java.lang.String,java.lang.String[]> provideRequestParameters(javax.servlet.ServletRequest req)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-