Package nl.clockwork.mule.ebms.util

Examples of nl.clockwork.mule.ebms.util.EbMSMessageContextValidator


  @Override
  public String sendMessage(EbMSMessageContent messageContent)
  {
    try
    {
      new EbMSMessageContextValidator(ebMSDAO).validate(messageContent.getContext());
      CollaborationProtocolAgreement cpa = ebMSDAO.getCPA(messageContent.getContext().getCpaId());
      EbMSMessage message = EbMSMessageUtils.ebMSMessageContentToEbMSMessage(cpa,messageContent,hostname);
      List<EbMSSendEvent> sendEvents = EbMSMessageUtils.getEbMSSendEvents(ebMSDAO.getCPA(message.getMessageHeader().getCPAId()),message.getMessageHeader());
      ebMSDAO.insertMessage(message,sendEvents);
      return message.getMessageHeader().getMessageData().getMessageId();
View Full Code Here


  public Object transform(MuleMessage message, String outputEncoding) throws TransformerException
  {
    try
    {
      EbMSMessageContent content = (EbMSMessageContent)message.getPayload();
      new EbMSMessageContextValidator(ebMSDAO).validate(content.getContext());
      CollaborationProtocolAgreement cpa = ebMSDAO.getCPA(content.getContext().getCpaId());
      message.setPayload(EbMSMessageUtils.ebMSMessageContentToEbMSMessage(cpa,content,hostname));

      return message;
    }
View Full Code Here

TOP

Related Classes of nl.clockwork.mule.ebms.util.EbMSMessageContextValidator

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.