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 class
InternalServletModule.BackwardsCompatibleServletContextProvider
Special 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 void
configure()
Configures aBinder
via the exposed methods.boolean
equals(java.lang.Object o)
int
hashCode()
(package private) javax.servlet.http.HttpServletRequest
provideHttpServletRequest()
(package private) javax.servlet.http.HttpServletResponse
provideHttpServletResponse()
(package private) javax.servlet.http.HttpSession
provideHttpSession()
(package private) java.util.Map<java.lang.String,java.lang.String[]>
provideRequestParameters(javax.servlet.ServletRequest req)
(package private) GuiceFilter
provideScopingOnlyGuiceFilter()
-
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:AbstractModule
Configures aBinder
via the exposed methods.- Overrides:
configure
in 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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-