public class SimpleVelocityRequestContext extends Object implements VelocityRequestContext
VelocityRequestContext| Constructor and Description |
|---|
SimpleVelocityRequestContext(String baseUrl) |
SimpleVelocityRequestContext(String baseUrl,
String canonicalBaseUrl,
RequestContextParameterHolder requestContextParameterHolder,
VelocityRequestSession session) |
| Modifier and Type | Method and Description |
|---|---|
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. |
public SimpleVelocityRequestContext(String baseUrl)
public SimpleVelocityRequestContext(String baseUrl, String canonicalBaseUrl, RequestContextParameterHolder requestContextParameterHolder, VelocityRequestSession session)
public String getBaseUrl()
getBaseUrl in interface VelocityRequestContextVelocityRequestContext.getBaseUrl()public String getCanonicalBaseUrl()
getCanonicalBaseUrl in interface VelocityRequestContextpublic RequestContextParameterHolder getRequestParameters()
VelocityRequestContextgetRequestParameters in interface VelocityRequestContextVelocityRequestContext.getRequestParameters()public String getRequestParameter(String name)
VelocityRequestContextgetRequestParameter in interface VelocityRequestContextname - parameter namepublic VelocityRequestSession getSession()
VelocityRequestContextVelocityRequestSession for the current user.
This will be null if you did not come in through a Http Request
getSession in interface VelocityRequestContextCopyright © 2002-2024 Atlassian. All Rights Reserved.