Methods Summary |
---|
public void | addString(java.lang.String s)
/* append string to session data */
setSessionData(getSessionData() + " " + s);
|
public java.lang.String | getResult()
/* return session data */
return getSessionData();
|
private java.lang.String | getSessionData()
String id = getSessionId();
Hashtable userData = (Hashtable)sessionManager.getSession(id).getUserData();
String ret = (String)userData.get(id);
return ret != null ? ret : "";
|
private java.lang.String | getSessionId()
/* Get SesssionId using well-known key in MessageContext */
return (String)context.getMessageContext()
.get("com.sun.xml.ws.sessionid");
|
private void | setSessionData(java.lang.String data)
String id = getSessionId();
com.sun.xml.ws.runtime.util.Session session = sessionManager.getSession(id);
Hashtable table = (Hashtable)session.getUserData() ;
table.put(id,data);
|