Package nl.clockwork.mule.ebms.model.ebxml

Examples of nl.clockwork.mule.ebms.model.ebxml.Manifest


      return null;
  }
 
  public static Manifest createManifest()
  {
    Manifest manifest = new Manifest();
    manifest.setVersion(Constants.EBMS_VERSION);
    return manifest;
  }
View Full Code Here


  {
    MessageHeader messageHeader = createMessageHeader(cpa,content.getContext(),hostname);

    AckRequested ackRequested = createAckRequested(cpa,content.getContext());
   
    Manifest manifest = createManifest();
    for (int i = 0; i < content.getAttachments().size(); i++)
      manifest.getReference().add(createReference(i + 1));
   
    List<DataSource> attachments = new ArrayList<DataSource>();
    for (EbMSAttachment attachment : content.getAttachments())
    {
      ByteArrayDataSource ds = new ByteArrayDataSource(attachment.getContent(),attachment.getContentType());
View Full Code Here

  public boolean accept(MuleMessage message)
  {
    if (message.getPayload() instanceof EbMSMessage)
    {
      EbMSMessage msg = (EbMSMessage)message.getPayload();
      Manifest manifest = msg.getManifest();
      if (!Constants.EBMS_VERSION.equals(manifest.getVersion()))
      {
        message.setProperty(Constants.EBMS_ERROR,EbMSMessageUtils.createError("//Body/Manifest[@version]",Constants.EbMSErrorCode.INCONSISTENT.errorCode(),"Wrong value."));
        return false;
      }
      for (Reference reference : manifest.getReference())
      {
        if (reference.getHref().startsWith("cid:"))
        {
          boolean found = false;
          for (DataSource dataSource : msg.getAttachments())
View Full Code Here

TOP

Related Classes of nl.clockwork.mule.ebms.model.ebxml.Manifest

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.