Class IntegrationResponse.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • responseTemplates

        public IntegrationResponse.Builder responseTemplates​(java.util.Map<java.lang.String,​java.lang.String> responseTemplates)
        Sets a mapping of response MIME types to templates.
        Parameters:
        responseTemplates - Map of MIME types to response templates.
        Returns:
        Returns the builder.
        See Also:
        IntegrationResponse.getResponseTemplates()
      • putResponseTemplate

        public IntegrationResponse.Builder putResponseTemplate​(java.lang.String mimeType,
                                                               java.lang.String template)
        Adds a response template for a MIME type.
        Parameters:
        mimeType - MIME type of the response template.
        template - Response template for the payload.
        Returns:
        Returns the builder.
        See Also:
        IntegrationResponse.getResponseTemplates()
      • removeResponseTemplate

        public IntegrationResponse.Builder removeResponseTemplate​(java.lang.String mimeType)
        Remove a response template for a given MIME type.
        Parameters:
        mimeType - MIME type to remove.
        Returns:
        Returns the builder.
      • responseParameters

        public IntegrationResponse.Builder responseParameters​(java.util.Map<java.lang.String,​java.lang.String> responseParameters)
        Sets response parameter mappings.
        Parameters:
        responseParameters - Map of response expressions to expressions to apply to response.
        Returns:
        Returns the builder.
        See Also:
        IntegrationResponse.getResponseParameters()
      • putResponseParameter

        public IntegrationResponse.Builder putResponseParameter​(java.lang.String name,
                                                                java.lang.String value)
        Sets a response parameter mapping.
        Parameters:
        name - Name of the expression to extract.
        value - Expression used to apply in the response.
        Returns:
        Returns the builder.
        See Also:
        IntegrationResponse.getResponseParameters()
      • removeResponseParameter

        public IntegrationResponse.Builder removeResponseParameter​(java.lang.String name)
        Removes a response parameter mapping.
        Parameters:
        name - Expression to remove.
        Returns:
        Returns the builder.