Examples of RqstEnvelope


Examples of org.xooof.xmldispatcher.tools.envelope.RqstEnvelope

                XMLDispatcherSystemException
  {
    try
    {
      // prepare message
      RqstEnvelope rqstEnvelope =
        new RqstEnvelope(verb,
                         null, // TBC: appName
                         className,
                         methodName,
                         instanceId,
                         xmlRqst,
View Full Code Here

Examples of org.xooof.xmldispatcher.tools.envelope.RqstEnvelope

  }

  public void onMessage(Message inMessage)
  {
    Message outMessage = null;
    RqstEnvelope rqstEnvelope = null;
    try
    {
      rqstEnvelope = envelopeMarshaller.unmarshallRqst(inMessage);
      before(inMessage,rqstEnvelope);
      // TBC: use appName to dispatch to adequate xmldispatcher?
      //      dispatch request - use same mechanism as in
      //      XDHttpFormServletBase (abstract getXMLDispatcherClient method)
      xd.setSessionData(rqstEnvelope.getSessionData());
      String xmlRply;
      switch (rqstEnvelope.getVerb())
      {
      case EnvelopeConstants.verbDispatchClassMethodXML:
        xmlRply = xd.dispatchClassMethodXML(rqstEnvelope.getClassName(),
                                            rqstEnvelope.getMethodName(),
                                            rqstEnvelope.getXmlRqst());
        break;
      case EnvelopeConstants.verbDispatchNewInstanceMethodXML:
        xmlRply = xd.dispatchNewInstanceMethodXML(rqstEnvelope.getClassName(),
                                                  rqstEnvelope.getMethodName(),
                                                  rqstEnvelope.getXmlRqst());
        break;
      case EnvelopeConstants.verbDispatchInstanceMethodXML:
        xmlRply = xd.dispatchInstanceMethodXML(rqstEnvelope.getClassName(),
                                               rqstEnvelope.getMethodName(),
                                               rqstEnvelope.getInstanceId(),
                                               rqstEnvelope.getXmlRqst());
        break;
      default:
        throw new XMLDispatcherSystemException("Invalid verb: " + rqstEnvelope.getVerb());
      }
      // prepare rply
      try
      {
        RplyEnvelopeOk rplyEnvelopeOk = new RplyEnvelopeOk(xmlRply,
View Full Code Here

Examples of org.xooof.xmldispatcher.tools.envelope.RqstEnvelope

    String instanceId = XmlUtils.findChildElementText(header,EnvelopeConstants.F_INSTANCEID);
    String sessionData = XmlUtils.findChildElementText(header,EnvelopeConstants.F_SESSIONDATA);
    // TBC: this is the bad thing about this kind of envelope: we
    //      have parsed it and we need to reconvert it to XML
    String xmlRqst = XmlUtils.elementContentToString(body);
    return new RqstEnvelope(EnvelopeConstants.stringToVerb(verb),
                            appName,
                            className,
                            methodName,
                            instanceId,
                            xmlRqst,
View Full Code Here

Examples of org.xooof.xmldispatcher.tools.envelope.RqstEnvelope

    String className = msg.getStringProperty(EnvelopeConstants.F_CLASSNAME);
    String methodName = msg.getStringProperty(EnvelopeConstants.F_METHODNAME);
    String instanceId = msg.getStringProperty(EnvelopeConstants.F_INSTANCEID);
    String sessionData = msg.getStringProperty(EnvelopeConstants.F_SESSIONDATA);
    String xmlRqst = ((TextMessage)msg).getText();
    return new RqstEnvelope(verb,appName,className,methodName,instanceId,xmlRqst,sessionData);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.