|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.util.velocity.SimpleVelocityRequestContext
public class SimpleVelocityRequestContext
Default implementation
VelocityRequestContext
Constructor Summary | |
---|---|
SimpleVelocityRequestContext(String baseUrl)
|
|
SimpleVelocityRequestContext(String baseUrl,
String canonicalBaseUrl,
RequestContextParameterHolder requestContextParameterHolder,
VelocityRequestSession session)
|
Method Summary | |
---|---|
String |
getBaseUrl()
|
String |
getCanonicalBaseUrl()
|
String |
getRequestParameter(String name)
Convenience method to return the value from the requestParameter map stored with the name parameter. |
RequestContextParameterHolder |
getRequestParameters()
Returns a RequestContextParameterHolder with various HttpServletRequest parameters. |
VelocityRequestSession |
getSession()
Retrieve the VelocityRequestSession for the current user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleVelocityRequestContext(String baseUrl)
public SimpleVelocityRequestContext(String baseUrl, String canonicalBaseUrl, RequestContextParameterHolder requestContextParameterHolder, VelocityRequestSession session)
Method Detail |
---|
public String getBaseUrl()
getBaseUrl
in interface VelocityRequestContext
VelocityRequestContext.getBaseUrl()
public String getCanonicalBaseUrl()
getCanonicalBaseUrl
in interface VelocityRequestContext
public RequestContextParameterHolder getRequestParameters()
VelocityRequestContext
getRequestParameters
in interface VelocityRequestContext
VelocityRequestContext.getRequestParameters()
public String getRequestParameter(String name)
VelocityRequestContext
getRequestParameter
in interface VelocityRequestContext
name
- parameter name
public VelocityRequestSession getSession()
VelocityRequestContext
VelocityRequestSession
for the current user.
This will be null if you did not come in through a Http Request
getSession
in interface VelocityRequestContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |