|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sr.server.CallerContext
public class CallerContext
This class is designed to keep caller context information and incoming message object in thread local variables during service call life cycle so that arbitrary classes which executed in the same thread can access the context information. End point implementations need to set context information explicitly and reset them before returning back to the client.
Constructor Summary | |
---|---|
CallerContext()
|
Method Summary | |
---|---|
static ICallerContextInfo<?> |
getCallerContextInfo()
Gives caller context information. |
static java.lang.Object |
getIncomingMessage()
Gives incoming message. |
static void |
resetContextValues()
Nulls thread local the values |
static void |
setContextValues(ICallerContextInfo<?> contextInfo,
java.lang.Object incomingMessage)
This method is designed for end points usage.They need to set up values by using this method immediately a message comes in. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CallerContext()
Method Detail |
---|
public static ICallerContextInfo<?> getCallerContextInfo()
public static java.lang.Object getIncomingMessage()
public static void setContextValues(ICallerContextInfo<?> contextInfo, java.lang.Object incomingMessage)
contextInfo
- incomingMessage
- public static void resetContextValues()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |