Package org.camunda.connect.httpclient
Interface HttpResponse
-
- All Superinterfaces:
CloseableConnectorResponse,ConnectorResponse
- All Known Subinterfaces:
SoapHttpResponse
- All Known Implementing Classes:
HttpResponseImpl,SoapHttpResponseImpl
public interface HttpResponse extends CloseableConnectorResponse
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPARAM_NAME_RESPONSEstatic java.lang.StringPARAM_NAME_RESPONSE_HEADERSstatic java.lang.StringPARAM_NAME_STATUS_CODE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetHeader(java.lang.String field)java.util.Map<java.lang.String,java.lang.String>getHeaders()java.lang.StringgetResponse()java.lang.IntegergetStatusCode()-
Methods inherited from interface org.camunda.connect.spi.CloseableConnectorResponse
close
-
Methods inherited from interface org.camunda.connect.spi.ConnectorResponse
getResponseParameter, getResponseParameters
-
-
-
-
Field Detail
-
PARAM_NAME_STATUS_CODE
static final java.lang.String PARAM_NAME_STATUS_CODE
- See Also:
- Constant Field Values
-
PARAM_NAME_RESPONSE
static final java.lang.String PARAM_NAME_RESPONSE
- 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
-
-