Class RequestContext

java.lang.Object
com.atlassian.crowd.plugin.web.RequestContext

public class RequestContext extends Object
Contains info about the currently executing HttpServletRequest and HttpServletResponse.
  • Constructor Details

    • RequestContext

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

    • getRequest

      public javax.servlet.http.HttpServletRequest getRequest()
      Returns:
      the currently executing HttpServletRequest
    • getResponse

      public javax.servlet.http.HttpServletResponse getResponse()
      Returns:
      the currently executing HttpServletResponse
    • getBaseUrl

      public String getBaseUrl()
      Returns:
      the base URL of this Crowd instance, calculated from the request
    • getContextPath

      public String getContextPath()
      Returns:
      context path of the currently executing request