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 of HttpServletRequest & HttpServletResponse. The request / response might have been wrapped by URL rewriting, so injecting the HttpServletRequest / 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:
  • Constructor Details

    • RequestContext

      public RequestContext()
  • Method Details

    • getRequest

      @Produces @Dependent public javax.servlet.http.HttpServletRequest getRequest()
    • getResponse

      @Produces @Dependent public javax.servlet.http.HttpServletResponse getResponse()
    • getWebContext

      @Produces @Dependent public org.pac4j.core.context.WebContext getWebContext()