java.lang.Object | |
↳ | com.atlassian.jira.web.HttpRequestLocal<T> |
Per-request variable (similar to ThreadLocal
, but request-scoped).
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new HttpRequestLocal, specifying the name to use.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the value of this HttpRequestLocal, or null if it is not set.
| |||||||||||
Removes the value of this HttpRequestLocal.
| |||||||||||
Sets the value of this HttpRequestLocal.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the current request's "initial value" for this request-local variable.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
Creates a new HttpRequestLocal, specifying the name to use. This name is used as the attribute name under which this request local is stored in the servlet request.
name | a String containing the attribute name to use in the servlet request |
---|
Returns the value of this HttpRequestLocal, or null if it is not set. If there is no current HTTP request, this
method returns null regardless of what initialValue()
would have returned.
Removes the value of this HttpRequestLocal.
Sets the value of this HttpRequestLocal.
value | the value to set |
---|
Returns the current request's "initial value" for this request-local variable. This method will be invoked the
first time that this request local variable's get()
method is called in a request.