Package nl.clockwork.mule.ebms.model

Examples of nl.clockwork.mule.ebms.model.EbMSMessageContext


  {
    List<EbMSAttachment> attachments = new ArrayList<EbMSAttachment>();
    for (DataSource attachment : message.getAttachments())
      attachments.add(new EbMSAttachment(attachment.getName(),attachment.getContentType(),IOUtils.toByteArray(attachment.getInputStream())));

    return new EbMSMessageContent(new EbMSMessageContext(message.getMessageHeader()),attachments);
  }
View Full Code Here


  @Override
  public Object transform(MuleMessage message, String outputEncoding) throws TransformerException
  {
    try
    {
      return new EbMSMessageContent(new EbMSMessageContext(cpaId,service,action),(List<EbMSAttachment>)message.getPayload());
    }
    catch (Exception e)
    {
      throw new TransformerException(this,e);
    }
View Full Code Here

        afleverBevestiging.setFout(error);

      List<EbMSAttachment> attachments = new ArrayList<EbMSAttachment>();
      attachments.add(new EbMSAttachment(name,"application/xml",XMLMessageBuilder.getInstance(BevestigAfleverBericht.class).handle(afleverBevestiging).getBytes()));

      return new EbMSMessageContent(new EbMSMessageContext(cpaId,service,action,content.getContext().getConversationId()),attachments);
    }
    catch (Exception e)
    {
      throw new TransformerException(this,e);
    }
View Full Code Here

        aanleverBevestiging.setFout(error);

      List<EbMSAttachment> attachments = new ArrayList<EbMSAttachment>();
      attachments.add(new EbMSAttachment(name,"application/xml",XMLMessageBuilder.getInstance(BevestigAanleverBericht.class).handle(aanleverBevestiging).getBytes()));

      return new EbMSMessageContent(new EbMSMessageContext(cpaId,service,action,content.getContext().getConversationId()),attachments);
    }
    catch (Exception e)
    {
      throw new TransformerException(this,e);
    }
View Full Code Here

TOP

Related Classes of nl.clockwork.mule.ebms.model.EbMSMessageContext

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.