|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcgl.hhms.hhfr.wscontext.ContextServiceHandler
Methods that send request to that WS-Context service.
This version provides two public methods, setContext and getContext.
Both indetifierKey and contextData are String types.
| Constructor Summary | |
ContextServiceHandler(java.lang.String serviceUrl,
int version)
Creates a new ContextServiceHandler instance. |
|
| Method Summary | |
java.lang.String |
getContext(java.lang.String identifierKey)
Get desired context data with identifier. |
void |
run()
run method which makes WS-Context requests for setContext and getContext. |
boolean |
setContext(java.lang.String identifierKey,
java.lang.String data)
Set desired context data with identifier. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ContextServiceHandler(java.lang.String serviceUrl,
int version)
ContextServiceHandler instance.
serviceUrl - the url of WS-Context serviceversion - the version of WS-Context service implementation| Method Detail |
public java.lang.String getContext(java.lang.String identifierKey)
throws java.lang.InterruptedException
identifierKey - the key to identify context data
java.lang.InterruptedException
public boolean setContext(java.lang.String identifierKey,
java.lang.String data)
throws java.lang.InterruptedException
identifierKey - the key to identify context datadata - context data
java.lang.InterruptedExceptionpublic void run()
getContext and setContext requests are made in run()
to avoid a possible deadlock.
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||