Package org.jboss.soa.esb.addressing

Examples of org.jboss.soa.esb.addressing.MalformedEPRException


      if (toEpr instanceof HibernateEpr)
    return new DefaultHibernateReplyToEpr((HibernateEpr) toEpr);
  }
  catch (MalformedURLException ex)
  {
      throw new MalformedEPRException(ex);
  }
  catch (URISyntaxException ex)
  {
      throw new MalformedEPRException(ex);
  }

  throw new CourierException("Unsupported default reply to EPR "
    + toEpr.getClass().getSimpleName());
    }
View Full Code Here


        epr2 = new EPR(new URI("2"));
        epr3 = new EPR(new URI("3"));
        epr4 = new EPR(new URI("4"));
        courier1 = new MockCourier(false);
        courier2 = new MockCourier(new CourierException(""));
        courier3 = new MockCourier(new MalformedEPRException(""));
        courier4 = new MockCourier(true);

        MockRegistry.register("cat", "service", epr1, courier1);
        MockRegistry.register("cat", "service", epr2, courier2);
        MockRegistry.register("cat", "service", epr3, courier3);
View Full Code Here

        assertNoDeliveryAttempted();
    }
    @Test
    public void test_getCourier_MalformedEPRException() throws MessageDeliverException {
        // Get the courier factory to throw a MalformedEPRException
        MockCourierFactory.malformedEPRException = new MalformedEPRException("");
        try {
          log.warn( "The following warings are intentional" );
            deliveryAdapter.deliverAsync(payload);
            fail("Expected MessageDeliverException");
        } catch(MessageDeliverException e) {
View Full Code Here

    // 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

            final String messageID = UUID.randomUUID().toString();
            try {
                call.setMessageID(new URI(messageID));
            }
            catch (final URISyntaxException urise) {
                throw new MalformedEPRException("Failed to set message ID to " + messageID);
            }
        }

        try {
            message = FilterManager.getInstance().doOutputWork(message, null);
View Full Code Here

      message.getHeader().setCall(call=new Call());
    try {
      if (null == call.getMessageID())
        call.setMessageID(new URI(UUID.randomUUID().toString()));
    } catch (URISyntaxException e) {
      throw new MalformedEPRException("Problems with message header ",e);
    }

    return false;
  }
View Full Code Here

                                return;
                        }
                }
                catch (Exception e)
                {
                        throw new MalformedEPRException(e);
                }
        } // ________________________________
View Full Code Here

                        if (null==call.getMessageID())
                                call.setMessageID(new URI(UUID.randomUUID().toString()));
                }
                catch (URISyntaxException e)
                {
                        throw new MalformedEPRException("Problems with message header ",e);
                }
               
                File tmpFile = null;

                if (handler instanceof LocalFileHandler)
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.addressing.MalformedEPRException

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.