Package com.atlassian.greenhopper.web
Class CurrentRequestGetter
java.lang.Object
com.atlassian.greenhopper.web.CurrentRequestGetter
Name says it all. Provides the current request object.
This class encapsulates ExecutingHttpRequest, providing a non-static alternative for it
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.servlet.http.HttpServletRequest
javax.servlet.http.HttpSession
-
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.
-