FileDocCategorySizeDatePackage
RMDemoImpl.javaAPI DocExample3515Tue May 29 16:58:14 BST 2007wsrm.session.server

RMDemoImpl

public class RMDemoImpl extends Object

Fields Summary
private WebServiceContext
context
Constructors Summary
Methods Summary
public voidaddString(java.lang.String s)

        /* append string to session data */
        setSessionData(getSessionData() + " " + s);
    
public java.lang.StringgetResult()

        /* return session data */
        return getSessionData();
    
private java.util.HashtablegetSession()

        return (Hashtable)context.getMessageContext()
                .get("com.sun.xml.ws.session");
    
private java.lang.StringgetSessionData()

	Hashtable sess = getSession();
        String ret = (String)sess.get("request_record");
        return ret != null ? ret : "";

    
private voidsetSessionData(java.lang.String data)

        Hashtable session = getSession();
        session.put("request_record", data);