|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.util.velocity.VelocityRequestContextFactory
Return an instance of VelocityRequestContext
, depending on whether we are called from a web or non-web context.
VelocityRequestContext
.
Constructor Summary | |
VelocityRequestContextFactory()
Deprecated. Please use VelocityRequestContextFactory(com.atlassian.jira.config.properties.ApplicationProperties) instead |
|
VelocityRequestContextFactory(ApplicationProperties applicationProperties)
|
Method Summary | |
static void |
cacheVelocityRequestContext(javax.servlet.http.HttpServletRequest request)
Called from a servlet filter. |
static void |
cacheVelocityRequestContext(String baseUrl,
javax.servlet.http.HttpServletRequest request)
Should be called from a servlet filter before the request gets a chance to run |
VelocityRequestContext |
getJiraVelocityRequestContext()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VelocityRequestContextFactory(ApplicationProperties applicationProperties)
public VelocityRequestContextFactory()
VelocityRequestContextFactory(com.atlassian.jira.config.properties.ApplicationProperties)
instead
Method Detail |
public VelocityRequestContext getJiraVelocityRequestContext()
public static void cacheVelocityRequestContext(javax.servlet.http.HttpServletRequest request)
HttpServletRequest.getContextPath()
along as the baseUrl.
request
- The HttpServletRequest used to construct the RequestContextParameterHolder
public static void cacheVelocityRequestContext(String baseUrl, javax.servlet.http.HttpServletRequest request)
baseUrl
- Should pass in HttpServletRequest.getContextPath()
request
- The HttpServletRequest used to construct the RequestContextParameterHolder
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |