Class ImmutableResponse

java.lang.Object
com.mirth.connect.server.userutil.ImmutableResponse

public class ImmutableResponse extends Object
This class represents a destination response and is used to retrieve details such as the response data, message status, and errors.
  • Constructor Details

    • ImmutableResponse

      public ImmutableResponse(Response response)
      Instantiates a new ImmutableResponse object.
      Parameters:
      response - The Response object that this object will reference for retrieving data.
  • Method Details

    • getMessage

      public String getMessage()
      Returns the actual response data, as a string.
      Returns:
      The actual response data, as a string.
    • getNewMessageStatus

      public Status getNewMessageStatus()
      Returns the Status (e.g. SENT, QUEUED) of this response, which will be used to set the status of the corresponding connector message.
      Returns:
      The Status (e.g. SENT, QUEUED) of this response.
    • getError

      public String getError()
      Returns the error string associated with this response, if it exists.
      Returns:
      The error string associated with this response, if it exists.
    • getStatusMessage

      public String getStatusMessage()
      Returns a brief message explaining the reason for the current status.
      Returns:
      A brief message explaining the reason for the current status.