com.atlassian.httpclient.plugin.jira
Class JiraThreadLocalContextManager

java.lang.Object
  extended by com.atlassian.httpclient.plugin.jira.JiraThreadLocalContextManager
All Implemented Interfaces:
ThreadLocalContextManager<JiraThreadLocalContextManager.JiraThreadLocalContext>

public final class JiraThreadLocalContextManager
extends java.lang.Object
implements ThreadLocalContextManager<JiraThreadLocalContextManager.JiraThreadLocalContext>


Nested Class Summary
static class JiraThreadLocalContextManager.JiraThreadLocalContext
           
 
Constructor Summary
JiraThreadLocalContextManager(com.atlassian.jira.security.JiraAuthenticationContext authenticationContext, com.atlassian.jira.util.velocity.VelocityRequestContextFactory velocityRequestContextFactory)
           
 
Method Summary
 JiraThreadLocalContextManager.JiraThreadLocalContext getThreadLocalContext()
          Get the thread local context of the current thread
 void resetThreadLocalContext()
          Clear the thread local context on the current thread
 void setThreadLocalContext(JiraThreadLocalContextManager.JiraThreadLocalContext context)
          Set the thread local context on the current thread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraThreadLocalContextManager

public JiraThreadLocalContextManager(com.atlassian.jira.security.JiraAuthenticationContext authenticationContext,
                                     com.atlassian.jira.util.velocity.VelocityRequestContextFactory velocityRequestContextFactory)
Method Detail

getThreadLocalContext

public JiraThreadLocalContextManager.JiraThreadLocalContext getThreadLocalContext()
Get the thread local context of the current thread

Specified by:
getThreadLocalContext in interface ThreadLocalContextManager<JiraThreadLocalContextManager.JiraThreadLocalContext>
Returns:
The thread local context

setThreadLocalContext

public void setThreadLocalContext(JiraThreadLocalContextManager.JiraThreadLocalContext context)
Set the thread local context on the current thread

Specified by:
setThreadLocalContext in interface ThreadLocalContextManager<JiraThreadLocalContextManager.JiraThreadLocalContext>
Parameters:
context - The context to set

resetThreadLocalContext

public void resetThreadLocalContext()
Clear the thread local context on the current thread

Specified by:
resetThreadLocalContext in interface ThreadLocalContextManager<JiraThreadLocalContextManager.JiraThreadLocalContext>


Copyright © 2012-2013 Atlassian. All Rights Reserved.