Class DestinationResponse


  • public final class DestinationResponse
    extends java.lang.Object
    • Constructor Detail

      • DestinationResponse

        public DestinationResponse​(int status,
                                   java.util.Map<java.lang.String,​java.util.List<java.lang.String>> headers,
                                   java.lang.String body)
        Creates a new DestinationResponse instance.
        Parameters:
        status - The HTTP status code of the destination response (Required)
        headers - The destination response's HTTP headers. (Required)
        body - The destination response's HTTP message body (Required)
      • DestinationResponse

        public DestinationResponse()
    • Method Detail

      • getStatus

        public int getStatus()
        The HTTP status code of the destination response (Required)
      • getHeaders

        public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getHeaders()
        The destination response's HTTP headers. (Required)
      • getBody

        public java.lang.String getBody()
        The destination response's HTTP message body (Required)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object