org.camunda.connect.httpclient
Interface HttpResponse
- All Superinterfaces:
- CloseableConnectorResponse, ConnectorResponse
- All Known Implementing Classes:
- HttpResponseImpl
public interface HttpResponse
- extends CloseableConnectorResponse
PARAM_NAME_STATUS_CODE
static final String PARAM_NAME_STATUS_CODE
- See Also:
- Constant Field Values
PARAM_NAME_RESPONSE
static final String PARAM_NAME_RESPONSE
- See Also:
- Constant Field Values
PARAM_NAME_RESPONSE_HEADERS
static final String PARAM_NAME_RESPONSE_HEADERS
- See Also:
- Constant Field Values
getStatusCode
Integer getStatusCode()
- Returns:
- the HTTP status code of the response
getResponse
String getResponse()
- Returns:
- the response body or null if non exists
getHeaders
Map<String,String> getHeaders()
- Returns:
- the response headers
getHeader
String getHeader(String field)
- Returns:
- return the response header value for the given field or null if not set
Copyright © 2017 camunda services GmbH. All rights reserved.