org.camunda.connect.httpclient
Interface HttpResponse

All Superinterfaces:
CloseableConnectorResponse, ConnectorResponse
All Known Implementing Classes:
HttpResponseImpl

public interface HttpResponse
extends CloseableConnectorResponse


Field Summary
static String PARAM_NAME_RESPONSE
           
static String PARAM_NAME_RESPONSE_HEADERS
           
static String PARAM_NAME_STATUS_CODE
           
 
Method Summary
 String getHeader(String field)
           
 Map<String,String> getHeaders()
           
 String getResponse()
           
 Integer getStatusCode()
           
 
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 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
Method Detail

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.