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

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


    try
    {
      GregorianCalendar timestamp = new GregorianCalendar();

      EbMSMessage msg = (EbMSMessage)message.getPayload();
      MessageHeader messageHeader = EbMSMessageUtils.createMessageHeader(msg.getMessageHeader(),hostname,timestamp,EbMSMessageType.MESSAGE_ERROR.action());
     
      ErrorList errorList = new ErrorList();

      errorList.setVersion(Constants.EBMS_VERSION);
      errorList.setMustUnderstand(true);
View Full Code Here


      GregorianCalendar timestamp = null;
      EbMSStatusRequest request = (EbMSStatusRequest)message.getPayload();
      EbMSMessageStatus status = EbMSMessageStatus.get((String)message.getProperty(Constants.EBMS_MESSAGE_STATUS));
      if (status == null)
      {
        MessageHeader messageHeader = ebMSDAO.getMessageHeader(request.getStatusRequest().getRefToMessageId());
        if (messageHeader == null || messageHeader.getService().getValue().equals(Constants.EBMS_SERVICE_URI))
          status = EbMSMessageStatus.NOT_RECOGNIZED;
        else if (messageHeader.getCPAId().equals(request.getMessageHeader().getCPAId()))
          status = EbMSMessageStatus.UNAUTHORIZED;
        else
        {
          status = ebMSDAO.getMessageStatus(request.getStatusRequest().getRefToMessageId());
          if (MessageStatusType.RECEIVED.equals(status.statusCode()) || MessageStatusType.PROCESSED.equals(status.statusCode()) || MessageStatusType.FORWARDED.equals(status.statusCode()))
            timestamp = messageHeader.getMessageData().getTimestamp().toGregorianCalendar();
        }
      }
      message.setPayload(EbMSMessageUtils.ebMSStatusRequestToEbMSStatusResponse(request,hostname,status,timestamp));
      return message;
    }
View Full Code Here

TOP

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

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.