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

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


    return error;
  }
 
  private static StatusResponse createStatusResponse(StatusRequest statusRequest, EbMSMessageStatus status, GregorianCalendar timestamp) throws DatatypeConfigurationException
  {
    StatusResponse response = new StatusResponse();
    response.setVersion(Constants.EBMS_VERSION);
    response.setRefToMessageId(statusRequest.getRefToMessageId());
    if (status != null)
    {
      response.setMessageStatus(status.statusCode());
      if (MessageStatusType.RECEIVED.equals(status.statusCode()) || MessageStatusType.PROCESSED.equals(status.statusCode()))
        response.setTimestamp(DatatypeFactory.newInstance().newXMLGregorianCalendar(timestamp));
    }
    return response;
  }
View Full Code Here


  }

  public static EbMSStatusResponse ebMSStatusRequestToEbMSStatusResponse(EbMSStatusRequest request, String hostname, EbMSMessageStatus status, GregorianCalendar timestamp) throws DatatypeConfigurationException
  {
    MessageHeader messageHeader = createMessageHeader(request.getMessageHeader(),hostname,new GregorianCalendar(),EbMSMessageType.STATUS_RESPONSE.action());
    StatusResponse statusResponse = createStatusResponse(request.getStatusRequest(),status,timestamp);
    EbMSStatusResponse response = new EbMSStatusResponse(messageHeader,statusResponse);
    return response;
  }
View Full Code Here

TOP

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

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.