Class RequestContext

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
org.nuxeo.ecm.platform.web.common.RequestContext
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>

public class RequestContext extends HashMap<String,Object>
An HTTP request context
Author:
Bogdan Stefanescu
See Also:
  • Field Details

    • request

      protected javax.servlet.http.HttpServletRequest request
    • response

      protected javax.servlet.http.HttpServletResponse response
    • cleanupHandlers

      protected List<RequestCleanupHandler> cleanupHandlers
  • Constructor Details

    • RequestContext

      public RequestContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
  • Method Details

    • getActiveContext

      public static RequestContext getActiveContext()
    • getActiveContext

      public static RequestContext getActiveContext(javax.servlet.ServletRequest request)
    • getRequest

      public javax.servlet.http.HttpServletRequest getRequest()
    • getResponse

      public javax.servlet.http.HttpServletResponse getResponse()
    • getUserPrincipal

      public Principal getUserPrincipal()
    • get

      public <T> T get(String key, Class<T> type)
    • addRequestCleanupHandler

      public void addRequestCleanupHandler(RequestCleanupHandler handler)
    • removeCleanupHandler

      public boolean removeCleanupHandler(RequestCleanupHandler handler)
    • dispose

      public void dispose()