com.atlassian.httpclient.plugin.confluence
Class ConfluenceThreadLocalContextManager

java.lang.Object
  extended by com.atlassian.httpclient.plugin.confluence.ConfluenceThreadLocalContextManager
All Implemented Interfaces:
ThreadLocalContextManager<ConfluenceThreadLocalContextManager.ThreadLocalContext>

public final class ConfluenceThreadLocalContextManager
extends java.lang.Object
implements ThreadLocalContextManager<ConfluenceThreadLocalContextManager.ThreadLocalContext>


Nested Class Summary
static class ConfluenceThreadLocalContextManager.ThreadLocalContext
           
 
Constructor Summary
ConfluenceThreadLocalContextManager()
           
 
Method Summary
 ConfluenceThreadLocalContextManager.ThreadLocalContext getThreadLocalContext()
          Get the thread local context of the current thread
 void resetThreadLocalContext()
          Clear the thread local context on the current thread
 void setThreadLocalContext(ConfluenceThreadLocalContextManager.ThreadLocalContext 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

ConfluenceThreadLocalContextManager

public ConfluenceThreadLocalContextManager()
Method Detail

getThreadLocalContext

public ConfluenceThreadLocalContextManager.ThreadLocalContext getThreadLocalContext()
Get the thread local context of the current thread

Specified by:
getThreadLocalContext in interface ThreadLocalContextManager<ConfluenceThreadLocalContextManager.ThreadLocalContext>
Returns:
The thread local context

setThreadLocalContext

public void setThreadLocalContext(ConfluenceThreadLocalContextManager.ThreadLocalContext context)
Set the thread local context on the current thread

Specified by:
setThreadLocalContext in interface ThreadLocalContextManager<ConfluenceThreadLocalContextManager.ThreadLocalContext>
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<ConfluenceThreadLocalContextManager.ThreadLocalContext>


Copyright © 2012-2013 Atlassian. All Rights Reserved.