Package nl.clockwork.mule.ebms.model

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


  @Override
  public EbMSMessageContent getMessage(String messageId, Boolean process)
  {
    try
    {
      EbMSBaseMessage message = ebMSDAO.getMessage(messageId);
      if (message instanceof EbMSMessage)
      {
        EbMSMessageContent result = EbMSMessageUtils.EbMSMessageToEbMSMessageContent((EbMSMessage)message);
        if (process != null && process)
          ebMSDAO.processReceivedMessage(messageId);
View Full Code Here


  {
    if (message.getPayload() instanceof EbMSBaseMessage)
    {
      try
      {
        EbMSBaseMessage msg = (EbMSBaseMessage)message.getPayload();
        CollaborationProtocolAgreement cpa = ebMSDAO.getCPA(msg.getMessageHeader().getCPAId());
        if (cpa == null || !cpa.getCpaid().equals(msg.getMessageHeader().getCPAId()))
        {
          message.setProperty(Constants.EBMS_ERROR,EbMSMessageUtils.createError("//Header/MessageHeader[@cpaid]",Constants.EbMSErrorCode.VALUE_NOT_RECOGNIZED.errorCode(),"CPA not found."));
          return false;
        }
        return true;
View Full Code Here

  {
    if (message.getPayload() instanceof EbMSBaseMessage)
    {
      try
      {
        EbMSBaseMessage msg = (EbMSBaseMessage)message.getPayload();
        MessageHeader messageHeader = msg.getMessageHeader();

        String refToMessageId = messageHeader.getMessageData().getRefToMessageId();
        if (!StringUtils.isEmpty(refToMessageId))
          //FIXME refToMessageId does not have to refer to another message or to an Acknowledgment or ErrorMessage
          if (!ebMSDAO.existsMessage(refToMessageId))
View Full Code Here

  {
    if (message.getPayload() instanceof EbMSBaseMessage)
    {
      try
      {
        EbMSBaseMessage msg = (EbMSBaseMessage)message.getPayload();
        Date now = new Date();
        CollaborationProtocolAgreement cpa = ebMSDAO.getCPA(msg.getMessageHeader().getCPAId());
        if (!StatusValueType.AGREED.equals(cpa.getStatus().getValue()))
        {
          message.setProperty(Constants.EBMS_ERROR,EbMSMessageUtils.createError("//Header/MessageHeader[@cpaid]",Constants.EbMSErrorCode.INCONSISTENT.errorCode(),"CPA not agreed."));
          return false;
        }
View Full Code Here

  private String action = EbMSMessageType.SERVICE_MESSAGE.action().getAction();
 
  @Override
  public boolean accept(MuleMessage message)
  {
    EbMSBaseMessage msg = (EbMSBaseMessage)message.getPayload();
    return service.getValue().equals(msg.getMessageHeader().getService().getValue()) && action.equals(msg.getMessageHeader().getAction());
  }
View Full Code Here

  {
    if (message.getPayload() instanceof EbMSBaseMessage)
    {
      try
      {
        EbMSBaseMessage msg = (EbMSBaseMessage)message.getPayload();
        MessageHeader messageHeader = msg.getMessageHeader();
        CollaborationProtocolAgreement cpa = ebMSDAO.getCPA(messageHeader.getCPAId());
        PartyInfo from = null;
        PartyInfo to = null;

        if (!Constants.EBMS_VERSION.equals(messageHeader.getVersion()))
View Full Code Here

TOP

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

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.