Package org.xooof.xmldispatcher.tools.envelope

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


      java.io.StringReader sr = new java.io.StringReader(marshalledRply);
      return sem.unmarshallRply(sr);
    }
    catch(java.io.IOException ioe)
    {
      throw new EnvelopeMarshallerException("Error reading from string: " + ioe);
    }
  }
View Full Code Here


  public RqstEnvelope unmarshallRqst(Message msg)
    throws EnvelopeMarshallerException, JMSException
  {
    if (!(msg instanceof TextMessage))
    {
      throw new EnvelopeMarshallerException("JMS message is not a TextMessage");
    }

    return sem.unmarshallRqst(((TextMessage)msg).getText());
  }
View Full Code Here

  public RplyEnvelope unmarshallRply(Message msg)
    throws EnvelopeMarshallerException, JMSException
  {
    if (!(msg instanceof TextMessage))
    {
      throw new EnvelopeMarshallerException("JMS message is not a TextMessage");
    }

    return sem.unmarshallRply(((TextMessage)msg).getText());
  }
View Full Code Here

  static public RplyEnvelopeError unmarshallError(Element error)
    throws EnvelopeMarshallerException
  {
    if (!XmlUtils.isElementName(error,T_ERROR))
    {
      throw new EnvelopeMarshallerException("Element must be named " + T_ERROR);
    }
    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);
View Full Code Here

      sw.close();
      return sw.toString();
    }
    catch(java.io.IOException ioe)
    {
      throw new EnvelopeMarshallerException("Error writing to string: " + ioe);
    }
  }
View Full Code Here

      Document d = db.parse(new org.xml.sax.InputSource(reader));
      return d.getDocumentElement();
    }
    catch(Exception e)
    {
      throw new EnvelopeMarshallerException("Error parsing message: " + e);
    }
  }
View Full Code Here

          break;
        case Node.TEXT_NODE:
          printEscapedPCDATA(((Text)child).getData(),writer,false);
          break;
        default:
          throw new EnvelopeMarshallerException("Unexpected node type in payload: " + child.getNodeType());
      }
      child = child.getNextSibling();
    }
  }
View Full Code Here

TOP

Related Classes of org.xooof.xmldispatcher.tools.envelope.EnvelopeMarshallerException

Copyright © 2018 www.massapicom. 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.