Class IntegrationResponse

    • Method Detail

      • builder

        public static IntegrationResponse.Builder builder()
        Creates a builder used to build an IntegrationResponse.
        Returns:
        Returns the created builder.
      • getStatusCode

        public java.lang.String getStatusCode()
        Gets the status code of the response.
        Returns:
        Returns the status code.
      • getContentHandling

        public java.util.Optional<java.lang.String> getContentHandling()
        Gets the response payload content handling type.

        Valid values are 1) CONVERT_TO_TEXT, for converting a binary payload into a Base64-encoded string or converting a text payload into a utf-8-encoded string or passing through the text payload natively without modification, and 2) CONVERT_TO_BINARY, for converting a text payload into Base64-decoded blob or passing through a binary payload natively without modification.

        Returns:
        Returns the content handling type.
      • getResponseTemplates

        public java.util.Map<java.lang.String,​java.lang.String> getResponseTemplates()
        Gets a map of MIME types to mapping templates for the response payload.
        Returns:
        Returns the immutable map.
      • getResponseTemplate

        public java.util.Optional<java.lang.String> getResponseTemplate​(java.lang.String mimeType)
        Gets a specific response template by MIME type.
        Parameters:
        mimeType - Response template MIME type.
        Returns:
        Returns the optionally found response template.
      • getResponseParameters

        public java.util.Map<java.lang.String,​java.lang.String> getResponseParameters()
        Gets response parameters.
        Returns:
        Returns the map of parameter expressions to how they modify the response.
        See Also:
        Response parameters
      • getResponseParameter

        public java.util.Optional<java.lang.String> getResponseParameter​(java.lang.String name)
        Gets a specific response parameter by it's input mapping expression.
        Parameters:
        name - Header name to retrieve.
        Returns:
        Returns the optionally found response parameter.
      • toNode

        public Node toNode()
        Description copied from interface: ToNode
        Converts a value to a Node.
        Specified by:
        toNode in interface ToNode
        Returns:
        Returns the creates Node.
      • 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