com.atlassian.jira.util.velocity.VelocityRequestContextFactory |
![]()
|
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
Provides a request context that can be used to get the 'correct' baseurl.
It will use information from the HttpRequest if one was made or applicationProperties otherwise to determine the baseurl.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
Use
setVelocityRequestContext(VelocityRequestContext) instead. Since v5.0.
| |||||||||||
Resets the thread local storage as if no request has occurred, effectively nulling out the current
thread local velocity request context.
| |||||||||||
Constructs a map with a number of common parameters used by velocity templates.
| |||||||||||
Get the request context.
| |||||||||||
Run the passed function in an environment where JIRA's configured
baseURL is always used. | |||||||||||
Update the thread-local storage with the given request information.
| |||||||||||
Update the thread-local storage with the given request information.
| |||||||||||
Update the thread-local storage with the given velocityRequestContext.
|
This method is deprecated.
Use setVelocityRequestContext(VelocityRequestContext)
instead. Since v5.0.
Update the thread-local storage with the given velocityRequestContext.
velocityRequestContext | The velocity request context to store. |
---|
Resets the thread local storage as if no request has occurred, effectively nulling out the current thread local velocity request context.
Constructs a map with a number of common parameters used by velocity templates.
startingParams | Map of parameters that may be used to override any of the parameters set here. |
---|---|
authenticationContext | JiraAuthenticationContext |
Get the request context.
Run the passed function in an environment where JIRA's configured baseURL
is always used. This basically
makes the passed function ignore any smart baseURL
that can be generated from the request associated
with the calling thread.
input | input to pass to the function. |
---|---|
runnable | the function to execute. |
Update the thread-local storage with the given request information.
request | The http request context to store. |
---|
Update the thread-local storage with the given request information.
baseUrl | of the request. |
---|---|
request | The http request context to store. |
Update the thread-local storage with the given velocityRequestContext.
velocityRequestContext | The velocity request context to store. |
---|