Class RequestContext
- java.lang.Object
-
- de.xima.fc.security.context.request.RequestContext
-
- All Implemented Interfaces:
Serializable
@Named @RequestScoped public class RequestContext extends Object implements Serializable
CDI model bean for accessing the current web context consisting ofHttpServletRequest
&HttpServletResponse
. The request / response might have been wrapped by URL rewriting, so injecting theHttpServletRequest
/HttpServletResponse
directly won't have all the necessary information (e.g. additional parameters). Use qualifier annotation@Wrapped
instead for injecting the rewritten request / response.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RequestContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.servlet.http.HttpServletRequest
getRequest()
javax.servlet.http.HttpServletResponse
getResponse()
org.pac4j.core.context.WebContext
getWebContext()
-