Class ServletScopingModule
java.lang.Object
com.google.inject.AbstractModule
com.peterphi.std.guice.web.rest.scoping.ServletScopingModule
- All Implemented Interfaces:
com.google.inject.Module
public class ServletScopingModule
extends com.google.inject.AbstractModule
Adds the
RequestScoped and SessionScoped scope annotations, also exposes HttpCallContext, HttpServletRequest,
HttpServletResponse and HttpSession based on the current HTTP call-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidjavax.servlet.http.HttpServletRequestjavax.servlet.http.HttpServletResponsejavax.servlet.http.HttpSessionMethods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Constructor Details
-
ServletScopingModule
public ServletScopingModule()
-
-
Method Details
-
configure
protected void configure()- Overrides:
configurein classcom.google.inject.AbstractModule
-
getServletRequest
-
getServletResponse
-
getServletResponse
-
getServletSession
-