Examples of RplyEnvelopeError


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

            sessionData = rplyEnvelopeOk.getSessionData();
            return rplyEnvelopeOk.getXmlRply();
          }
          else
          {
            RplyEnvelopeError rplyEnvelopeError = (RplyEnvelopeError)rplyEnvelope;
            afterError(rqst,rqstEnvelope,rply,rplyEnvelopeError);
            XMLDispatcherException xde = rplyEnvelopeError.getException();
            if (xde instanceof XMLDispatcherAppException)
            {
              throw (XMLDispatcherAppException)xde;
            }
            else if (xde instanceof XMLDispatcherUserException)
View Full Code Here

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

      {
        // error
        if (httpResponse.getStatusCode() == 510)
        {
          // xmldispatcher error
          RplyEnvelopeError error = ErrorMarshallerXML.unmarshallError(getResponseText(httpResponse));
          XMLDispatcherException exception = error.getException();
          if (exception instanceof XMLDispatcherAppException)
          {
            throw (XMLDispatcherAppException)exception;
          }
          else if (exception instanceof XMLDispatcherUserException)
View Full Code Here

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

      System.exit(0);
    }
    catch(Exception e)
    {
      Writer writer = new OutputStreamWriter(System.out);
      ErrorMarshallerXML.marshallError(new RplyEnvelopeError(e),writer);
      writer.close();
      System.exit(1);
    }
  }
View Full Code Here

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

    }
    catch(Throwable e)
    {
      try
      {
        RplyEnvelopeError rplyEnvelopeError = new RplyEnvelopeError(e);
        if (inMessage.getJMSReplyTo() != null)
        {
          outMessage = envelopeMarshaller.marshallRply(rplyEnvelopeError,
                                                       queueSession);
        }
View Full Code Here

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

  private void writeError(HttpServletResponse response, Exception e)
    throws IOException
  {
    response.setStatus(510);
    response.setContentType("text/xml; charset=utf-8");
    ErrorMarshallerXML.marshallError(new RplyEnvelopeError(e),
                                     response.getWriter());
  }
View Full Code Here

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

      XmlUtils.writeETag(writer,T_BODY);
      XmlUtils.writeETag(writer,T_ENVELOPE);
    }
    else if (rplyEnvelope instanceof RplyEnvelopeError)
    {
      RplyEnvelopeError rplyEnvelopeError = (RplyEnvelopeError)rplyEnvelope;
      XmlUtils.writeSTag(writer,T_ENVELOPE);
      XmlUtils.writeSTag(writer,T_HEADER);
      XmlUtils.writeETag(writer,T_HEADER);
      XmlUtils.writeSTag(writer,T_BODY);
      ErrorMarshallerXML.marshallError(rplyEnvelopeError,writer);
View Full Code Here

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

        msg.setText(rplyEnvelopeOk.getXmlRply());
      }
    }
    else if (rplyEnvelope instanceof RplyEnvelopeError)
    {
      RplyEnvelopeError rplyEnvelopeError = (RplyEnvelopeError)rplyEnvelope;
      // header
      msg.setStringProperty(EnvelopeConstants.F_STATUS,EnvelopeConstants.V_NOK);
      // body
      msg.setText(ErrorMarshallerXML.marshallError(rplyEnvelopeError));
    }
View Full Code Here

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

    }
    String type = XmlUtils.findChildElementText(error,T_ERRORTYPE);
    String source = XmlUtils.findChildElementText(error,T_ERRORSOURCE);
    String description = XmlUtils.findChildElementText(error,T_ERRORDESCRIPTION);
    String code = XmlUtils.findChildElementText(error,T_ERRORCODE);
    return new RplyEnvelopeError(type,description,code,source);
  }
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.