Class CSMessageResponseData

  • Direct Known Subclasses:
    PKIMessageResponseData

    public class CSMessageResponseData
    extends java.lang.Object
    Value class containing the result of a message processing call.

    The information is mainly the response and PKI message destination.

    • Field Detail

      • messageId

        protected java.lang.String messageId
      • messageName

        protected java.lang.String messageName
      • relatedEndEntity

        protected java.lang.String relatedEndEntity
      • destination

        protected java.lang.String destination
      • responseData

        protected byte[] responseData
      • isForwardableResponse

        protected boolean isForwardableResponse
      • responseMessage

        protected CSMessage responseMessage
      • messageProperties

        protected java.util.Map<java.lang.String,​java.lang.String> messageProperties
    • Constructor Detail

      • CSMessageResponseData

        public CSMessageResponseData()
        Empty constructor
      • CSMessageResponseData

        public CSMessageResponseData​(CSMessage responseMessage,
                                     java.lang.String relatedEndEntity,
                                     byte[] responseData,
                                     boolean isForwardableResponse)
        Default constructor
        Parameters:
        responseMessage - The related response message.
        relatedEndEntity - the related end entity of the message.
        responseData - the response data
        isForwardableResponse - true if response is forwardable.
      • CSMessageResponseData

        public CSMessageResponseData​(java.lang.String messageId,
                                     java.lang.String messageName,
                                     java.lang.String relatedEndEntity,
                                     java.lang.String destination,
                                     byte[] responseData)
        Alternative constructor when CSMessage is not available.
        Parameters:
        messageId - the related id of the message
        messageName - the name of the message in the response
        relatedEndEntity - the related end entity of the message.
        destination - the PKI Message destination to send the message to.
        responseData - the response data
      • CSMessageResponseData

        public CSMessageResponseData​(java.lang.String messageId,
                                     java.lang.String messageName,
                                     java.lang.String relatedEndEntity,
                                     java.lang.String destination,
                                     byte[] responseData,
                                     boolean isForwardableResponse)
        Constructor where it's possible to set if the response is a failure response.
        Parameters:
        messageId - the related id of the message
        messageName - the name of the message in the response
        relatedEndEntity - the related end entity of the message.
        destination - the PKI Message destination to send the message to.
        responseData - the response data
        isForwardableResponse - true if response is forwardable.
    • Method Detail

      • isForwardable

        public boolean isForwardable​(java.util.Set<java.lang.String> excludedDestinations)
        Help method calculating if a method should be forwarded or not.

        Does the following calculation:

      • Is PKI Message Destination not in exclude list
      • is not a failure response
      • if both are true is true returned
Parameters:
excludedDestinations - a set of excluded destinations.
Returns:
true if this message should be forwarded