예제 #1
0
 public ResponseContext( String sessionId, String changeToken, RefreshBlock rb, Notification n )
 {
     this.sessionId = sessionId;
     this.changeToken = changeToken;
     this.refreshBlock = rb;
     this.notification = n;
 }
예제 #2
0
        public ResponseContext( XmlNode contextNode )
        {
            if( contextNode == null )
                return;
            sessionId = XmlUtil.GetNodeText( contextNode, ZimbraService.NS_PREFIX + ":" + ZimbraService.E_SESSION );
            changeToken = XmlUtil.GetAttributeValue( contextNode, ZimbraService.E_CHANGE, ZimbraService.A_TOKEN );

            XmlNode notifyNode = contextNode.SelectSingleNode( ZimbraService.NS_PREFIX + ":" + ZimbraService.E_NOTIFY, XmlUtil.NamespaceManager );
            if( notifyNode != null )
            {
                notification = new Notification(notifyNode);
            }
        }