Examples of HTTPEpr


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

        public void testSerializedMessageCopy () throws Exception
        {
            Message msg = MessageFactory.getInstance().getMessage(MessageType.JBOSS_XML);
               
                msg.getHeader().getCall().setAction(new URI("urn:foo"));
                msg.getHeader().getCall().setFrom(new HTTPEpr("http://foo.bar"));
               
                msg.getBody().add("foobar");
                msg.getBody().add("qwerty", "uiop");
                msg.getBody().add(BytesBody.BYTES_LOCATION, "hello world".getBytes());
               
View Full Code Here

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

        public void testXMLMessageCopy () throws Exception
        {
            Message msg = MessageFactory.getInstance().getMessage(MessageType.JBOSS_XML);
               
                msg.getHeader().getCall().setAction(new URI("urn:foo"));
                msg.getHeader().getCall().setFrom(new HTTPEpr("http://foo.bar"));
               
                msg.getBody().add("foobar");
                msg.getBody().add("qwerty", "uiop");
                msg.getBody().add(BytesBody.BYTES_LOCATION, "hello world".getBytes());
               
View Full Code Here

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

  {
    Message msg = MessageFactory.getInstance().getMessage(MessageType.JAVA_SERIALIZED);

    try
    {
      HTTPEpr epr = new HTTPEpr("http://www.foo.bar");
     
      msg.getHeader().getCall().setTo(epr);
     
      ByteArrayOutputStream s = new ByteArrayOutputStream();
      ObjectOutputStream o = new ObjectOutputStream(s);
View Full Code Here

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

 
    Message msg1 = MessageFactory.getInstance().getMessage(MessageType.JAVA_SERIALIZED);
   
    msg1.getBody().add("foo", "bar");
    try {
      msg1.getHeader().getCall().setTo(new HTTPEpr("http://foo.bar"));
      msg1.getHeader().getCall().setMessageID(new URI("urn:1234"));
    } catch (URISyntaxException e1) {
      e1.printStackTrace();
      fail(e1.getMessage());
    }
View Full Code Here

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

    public void testTracing () throws Exception
    {
  Message msg = MessageFactory.getInstance().getMessage();
 
  msg.getHeader().getCall().setTo(new FTPEpr("ftp://foo.bar"));
  msg.getHeader().getCall().setReplyTo(new HTTPEpr("http://bar.foo"));
  msg.getHeader().getCall().setAction(new URI("urn:dowork"));
  msg.getBody().add("Hello World".getBytes());
  msg.getHeader().getCall().setMessageID(new URI("urn:foo/bar/1234"));

  Message output = FilterManager.getInstance().doOutputWork(msg, null);
View Full Code Here

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

  }
 
  public void testRegistryUtil () throws Exception
  {
    RegistryUtil.getEprManager();
    HTTPEpr epr = new HTTPEpr("http://foo.bar");
    ConfigTree tree = new ConfigTree("test");
   
    tree.setAttribute(ListenerTagNames.SERVICE_CATEGORY_NAME_TAG, "eprmanager");
    tree.setAttribute(ListenerTagNames.SERVICE_NAME_TAG, "test");
   
View Full Code Here

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

   
    // Test processing a message
    Message msg1 = MessageFactory.getInstance().getMessage(MessageType.JAVA_SERIALIZED);
    msg1.getBody().add("bar");
    try {
      msg1.getHeader().getCall().setTo(new HTTPEpr("http://foo.bar"));
      msg1.getHeader().getCall().setMessageID(new URI("urn:1234"));
      msg1.getProperties().setProperty(FILENAME_PROPERTY, FILENAME + "." + SUFFIX);
      @SuppressWarnings("unused")
      Message result = fnga.process(msg1);
      String filename = (String) result.getProperties().getProperty(RESULT_PROPERTY);
View Full Code Here

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

 
  public void testFacade() {
    Message msg1 = MessageFactory.getInstance().getMessage(MessageType.JAVA_SERIALIZED);
    msg1.getBody().add("foo", "bar");
    try {
      msg1.getHeader().getCall().setTo(new HTTPEpr("http://foo.bar"));
      msg1.getHeader().getCall().setMessageID(new URI("urn:1234"));
    } catch (URISyntaxException e1) {
      e1.printStackTrace();
      fail(e1.getMessage());
    }
View Full Code Here

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

  public void testProcess() {
    AddTimestampNamingStrategy atns = new AddTimestampNamingStrategy();
    Message msg1 = MessageFactory.getInstance().getMessage(MessageType.JAVA_SERIALIZED);
    msg1.getBody().add("bar");
    try {
      msg1.getHeader().getCall().setTo(new HTTPEpr("http://foo.bar"));
      msg1.getHeader().getCall().setMessageID(new URI("urn:1234"));
    } catch (URISyntaxException e1) {
      e1.printStackTrace();
      fail(e1.getMessage());
    }
View Full Code Here

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

  public void testProcess() {
    ChangeSuffixNamingStrategy csns = new ChangeSuffixNamingStrategy();
    Message msg1 = MessageFactory.getInstance().getMessage(MessageType.JAVA_SERIALIZED);
    msg1.getBody().add("bar");
    try {
      msg1.getHeader().getCall().setTo(new HTTPEpr("http://foo.bar"));
      msg1.getHeader().getCall().setMessageID(new URI("urn:1234"));
    } catch (URISyntaxException e1) {
      e1.printStackTrace();
      fail(e1.getMessage());
    }
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.