org.logicblaze.lingo
Class ClientContextHolder

java.lang.Object
  extended by org.logicblaze.lingo.ClientContextHolder

public class ClientContextHolder
extends java.lang.Object

Client context holder. Calling getUserName() on the server wll return the invoking clients username if provided or null if not provided.

Since:
1.5
Author:
Sanjiv Jivan

Constructor Summary
ClientContextHolder()
           
 
Method Summary
static ClientContext getContext()
          Obtains the ClientContext associated with the current thread of execution.
static java.lang.String getUserName()
           
static void setContext(ClientContext context)
          Associates a new ClientContext with the current thread of execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientContextHolder

public ClientContextHolder()
Method Detail

setContext

public static void setContext(ClientContext context)
Associates a new ClientContext with the current thread of execution.


getContext

public static ClientContext getContext()
Obtains the ClientContext associated with the current thread of execution.

Returns:
the current ClientContext

getUserName

public static java.lang.String getUserName()


Copyright © 2011 LogicBlaze, Inc.. All Rights Reserved.