Package org.jboss.internal.soa.esb.message.format.xml

Examples of org.jboss.internal.soa.esb.message.format.xml.MessageImpl


                        msg.getHeader().getCall().setTo(epr);
                       
                        final String xmlRepresentation = msgToXML((MessageImpl)msg) ;
                        log.debug("Document is "+xmlRepresentation);
                       
                        final MessageImpl nImpl = msgFromXML(xmlRepresentation) ;
                       
                        EPR theEpr = nImpl.getHeader().getCall().getTo();
                       
                        assertEquals(theEpr instanceof SFTPEpr, true);
                }
                catch (Exception ex)
                {                      
View Full Code Here


      msg.getHeader().getCall().setTo(epr);
     
      final String xmlRepresentation = msgToXML((MessageImpl)msg) ;
      log.debug("Document is "+xmlRepresentation);
     
      final MessageImpl nImpl = msgFromXML(xmlRepresentation) ;
     
      EPR theEpr = nImpl.getHeader().getCall().getTo();
     
      assertEquals(theEpr instanceof JDBCEpr, true);
     
      assertEquals(((JDBCEpr) theEpr).getSQL(), "SOME FAKE SQL");
    }
View Full Code Here

      msg.getHeader().getCall().setTo(epr);
     
      final String xmlRepresentation = msgToXML((MessageImpl)msg) ;
      log.debug("Document is "+xmlRepresentation);
     
      final MessageImpl nImpl = msgFromXML(xmlRepresentation) ;
     
      EPR theEpr = nImpl.getHeader().getCall().getTo();
     
      assertEquals(theEpr instanceof FileEpr, true);
     
      assertEquals(((FileEpr) theEpr).getErrorDelete(), true);
    }
View Full Code Here

      msg.getHeader().getCall().setTo(epr);
     
      final String xmlRepresentation = msgToXML((MessageImpl)msg) ;
      log.debug("Document is "+xmlRepresentation);
     
      final MessageImpl nImpl = msgFromXML(xmlRepresentation) ;
     
      EPR theEpr = nImpl.getHeader().getCall().getTo();
     
      assertEquals(theEpr instanceof SFTPEpr, true);
     
      assertEquals(((SFTPEpr)theEpr).getCertificateURI().toString(), "http://www.bar.foo");
    }
View Full Code Here

        // MessageType.JBOSS_XML
    int size = ((String)serial).getBytes().length;
      final StringReader reader = new StringReader((String)serial);
      final XMLStreamReader in = XMLHelper.getXMLStreamReader(reader) ;
      StreamHelper.checkNextStartTag(in, XMLUtil.ESB_QNAME_ENVELOPE) ;
      Message mess = new MessageImpl(in);
      mess.getProperties().setProperty(Environment.MESSAGE_BYTE_SIZE, "" + size);
      return mess;
  }
  catch (XMLStreamException xmlse)
  {
           final IOException ioe = new IOException("Util.deserialize caught XMLStreamException") ;
View Full Code Here

        msg.getHeader().getCall().setTo(epr);

        final String xmlRepresentation = XMLMessageUnitTest.msgToXML((MessageImpl)msg) ;

        final MessageImpl nImpl = XMLMessageUnitTest.msgFromXML(xmlRepresentation) ;

        EPR theEpr = nImpl.getHeader().getCall().getTo();

        assertTrue("Expected a Logical EPR", theEpr instanceof LogicalEPR);

        assertEquals("logical:a#b", theEpr.getAddr().getAddress());
    }
View Full Code Here

TOP

Related Classes of org.jboss.internal.soa.esb.message.format.xml.MessageImpl

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.