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 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 namepublic 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
Copyright © 2002-2022 Atlassian. All Rights Reserved.