Package org.jboss.soa.esb.addressing.eprs

Examples of org.jboss.soa.esb.addressing.eprs.FileEpr


*/
public class ToMessageMapperUnitTest extends TestCase {

    public void testHeader() throws URISyntaxException, ObjectMappingException
    {
        EPR toEpr = new FileEpr("test1");
        Message message = MessageFactory.getInstance().getMessage();
       
        String expression="header.call.to";
        ObjectMapper objectMapper = new ObjectMapper();
        objectMapper.setObjectOnMessage(message, expression, toEpr);
View Full Code Here


    public void testHeader() throws URISyntaxException, ObjectMappingException {
        ObjectMapper mapper = new ObjectMapper();
        Message message = MessageFactory.getInstance().getMessage();
        List<String> variableList = new ArrayList<String>();
       
        EPR eprTo = new FileEpr("testTo");
        message.getHeader().getCall().setTo(eprTo);
       
        EPR eprFrom = new FileEpr("testFrom");
        message.getHeader().getCall().setFrom(eprFrom);
       
        variableList.add("header.call.to");
        variableList.add("header.call.from");
        variableList.add("'header'.'call'.to");
View Full Code Here

    if (addr.startsWith(JDBCEpr.JDBC_PROTOCOL))
      return new SqlTableCourier(new JDBCEpr(epr), pickUpOnly);
    // TODO magic strings
    if (addr.startsWith("file://") || addr.startsWith("ftp://")
        || addr.startsWith("sftp://") || addr.startsWith("ftps://"))
      return new FileCourier(new FileEpr(epr), pickUpOnly);

    throw new MalformedEPRException("Courier for "
        + epr.getClass().getSimpleName() + " not supported: ESB-unaware EPR used!");
  }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.addressing.eprs.FileEpr

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.