Class HttpResponseImpl
java.lang.Object
org.camunda.connect.impl.AbstractConnectorResponse
org.camunda.connect.impl.AbstractCloseableConnectorResponse
org.camunda.connect.httpclient.impl.HttpResponseImpl
- All Implemented Interfaces:
HttpResponse,org.camunda.connect.spi.CloseableConnectorResponse,org.camunda.connect.spi.ConnectorResponse
public class HttpResponseImpl
extends org.camunda.connect.impl.AbstractCloseableConnectorResponse
implements HttpResponse
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.http.client.methods.CloseableHttpResponseFields inherited from class org.camunda.connect.impl.AbstractConnectorResponse
responseParametersFields inherited from interface org.camunda.connect.httpclient.HttpResponse
PARAM_NAME_RESPONSE, PARAM_NAME_RESPONSE_HEADERS, PARAM_NAME_STATUS_CODE -
Constructor Summary
ConstructorsConstructorDescriptionHttpResponseImpl(org.apache.http.client.methods.CloseableHttpResponse httpResponse) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidcollectResponseParameters(Map<String, Object> responseParameters) protected CloseableMethods inherited from class org.camunda.connect.impl.AbstractCloseableConnectorResponse
closeMethods inherited from class org.camunda.connect.impl.AbstractConnectorResponse
getResponseParameter, getResponseParametersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.camunda.connect.spi.CloseableConnectorResponse
closeMethods inherited from interface org.camunda.connect.spi.ConnectorResponse
getResponseParameter, getResponseParameters
-
Field Details
-
httpResponse
protected org.apache.http.client.methods.CloseableHttpResponse httpResponse
-
-
Constructor Details
-
HttpResponseImpl
public HttpResponseImpl(org.apache.http.client.methods.CloseableHttpResponse httpResponse)
-
-
Method Details
-
getStatusCode
- Specified by:
getStatusCodein interfaceHttpResponse- Returns:
- the HTTP status code of the response
-
getResponse
- Specified by:
getResponsein interfaceHttpResponse- Returns:
- the response body or null if non exists
-
getHeaders
- Specified by:
getHeadersin interfaceHttpResponse- Returns:
- the response headers
-
getHeader
- Specified by:
getHeaderin interfaceHttpResponse- Returns:
- return the response header value for the given field or null if not set
-
collectResponseParameters
- Specified by:
collectResponseParametersin classorg.camunda.connect.impl.AbstractConnectorResponse
-
collectResponseHeaders
protected void collectResponseHeaders() -
getClosable
- Specified by:
getClosablein classorg.camunda.connect.impl.AbstractCloseableConnectorResponse
-