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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
javax.servlet.http.HttpServletRequest
javax.servlet.http.HttpServletResponse
javax.servlet.http.HttpSession
Methods 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:
configure
in classcom.google.inject.AbstractModule
-
getServletRequest
-
getServletResponse
-
getServletResponse
-
getServletSession
-