com.atlassian.httpclient.plugin.refapp
Class RefappThreadLocalContextManager

java.lang.Object
  extended by com.atlassian.httpclient.plugin.refapp.RefappThreadLocalContextManager
All Implemented Interfaces:
ThreadLocalContextManager<java.security.Principal>

public final class RefappThreadLocalContextManager
extends java.lang.Object
implements ThreadLocalContextManager<java.security.Principal>


Constructor Summary
RefappThreadLocalContextManager(com.atlassian.seraph.auth.AuthenticationContext authenticationContext)
           
 
Method Summary
 java.security.Principal getThreadLocalContext()
          Get the thread local context of the current thread
 void resetThreadLocalContext()
          Clear the thread local context on the current thread
 void setThreadLocalContext(java.security.Principal 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

RefappThreadLocalContextManager

public RefappThreadLocalContextManager(com.atlassian.seraph.auth.AuthenticationContext authenticationContext)
Method Detail

getThreadLocalContext

public java.security.Principal getThreadLocalContext()
Get the thread local context of the current thread

Specified by:
getThreadLocalContext in interface ThreadLocalContextManager<java.security.Principal>
Returns:
The thread local context

setThreadLocalContext

public void setThreadLocalContext(java.security.Principal context)
Set the thread local context on the current thread

Specified by:
setThreadLocalContext in interface ThreadLocalContextManager<java.security.Principal>
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<java.security.Principal>


Copyright © 2012-2013 Atlassian. All Rights Reserved.