Interface HttpResponse

  • All Superinterfaces:
    org.camunda.connect.spi.CloseableConnectorResponse, org.camunda.connect.spi.ConnectorResponse
    All Known Implementing Classes:
    HttpResponseImpl

    public interface HttpResponse
    extends org.camunda.connect.spi.CloseableConnectorResponse
    • Field Detail

      • PARAM_NAME_STATUS_CODE

        static final java.lang.String PARAM_NAME_STATUS_CODE
        See Also:
        Constant Field Values
      • PARAM_NAME_RESPONSE_HEADERS

        static final java.lang.String PARAM_NAME_RESPONSE_HEADERS
        See Also:
        Constant Field Values
    • Method Detail

      • getStatusCode

        java.lang.Integer getStatusCode()
        Returns:
        the HTTP status code of the response
      • getResponse

        java.lang.String getResponse()
        Returns:
        the response body or null if non exists
      • getHeaders

        java.util.Map<java.lang.String,​java.lang.String> getHeaders()
        Returns:
        the response headers
      • getHeader

        java.lang.String getHeader​(java.lang.String field)
        Returns:
        return the response header value for the given field or null if not set