com.atlassian.jira.web
Class HttpRequestLocal<T>

java.lang.Object
  extended by com.atlassian.jira.web.HttpRequestLocal<T>

@Immutable
public class HttpRequestLocal<T>
extends Object

Per-request variable (similar to ThreadLocal, but request-scoped).

Since:
v4.4

Constructor Summary
HttpRequestLocal(String name)
           
 
Method Summary
 T get()
          Returns the value of this HttpRequestLocal, or null if it is not set.
 void remove()
          Removes the value of this HttpRequestLocal.
 void set(T value)
          Sets the value of this HttpRequestLocal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpRequestLocal

public HttpRequestLocal(String name)
Method Detail

get

public T get()
Returns the value of this HttpRequestLocal, or null if it is not set.

Returns:
the value of this HttpRequestLocal, or null

set

public void set(T value)
Sets the value of this HttpRequestLocal.

Parameters:
value - the value to set

remove

public void remove()
Removes the value of this HttpRequestLocal.



Copyright © 2002-2011 Atlassian. All Rights Reserved.