Class CurrentRequestGetter

java.lang.Object
com.atlassian.greenhopper.web.CurrentRequestGetter

@Service public class CurrentRequestGetter extends Object
Name says it all. Provides the current request object. This class encapsulates ExecutingHttpRequest, providing a non-static alternative for it
  • Constructor Details

    • CurrentRequestGetter

      public CurrentRequestGetter()
  • Method Details

    • getCurrentRequest

      public javax.servlet.http.HttpServletRequest getCurrentRequest()
    • getCurrentSession

      public javax.servlet.http.HttpSession getCurrentSession()
      Returns:
      the current session, or null if there is no current request (i.e. something was invoked outside the normal web filter chain). See ExecutingHttpRequest for info on where the threadLocal is populated.