org.logicblaze.lingo
Class ClientContextHolder
java.lang.Object
org.logicblaze.lingo.ClientContextHolder
public class ClientContextHolder
- extends 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientContextHolder
public ClientContextHolder()
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 String getUserName()
Copyright © 2012 LogicBlaze, Inc.. All Rights Reserved.