org.camunda.connect.httpclient.impl
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, CloseableConnectorResponse, ConnectorResponse
public class HttpResponseImpl
- extends AbstractCloseableConnectorResponse
- implements HttpResponse
|
Field Summary |
protected org.apache.http.client.methods.CloseableHttpResponse |
httpResponse
|
|
Constructor Summary |
HttpResponseImpl(org.apache.http.client.methods.CloseableHttpResponse httpResponse)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
httpResponse
protected org.apache.http.client.methods.CloseableHttpResponse httpResponse
HttpResponseImpl
public HttpResponseImpl(org.apache.http.client.methods.CloseableHttpResponse httpResponse)
getStatusCode
public Integer getStatusCode()
- Specified by:
getStatusCode in interface HttpResponse
- Returns:
- the HTTP status code of the response
getResponse
public String getResponse()
- Specified by:
getResponse in interface HttpResponse
- Returns:
- the response body or null if non exists
getHeaders
public Map<String,String> getHeaders()
- Specified by:
getHeaders in interface HttpResponse
- Returns:
- the response headers
getHeader
public String getHeader(String field)
- Specified by:
getHeader in interface HttpResponse
- Returns:
- return the response header value for the given field or null if not set
collectResponseParameters
protected void collectResponseParameters(Map<String,Object> responseParameters)
- Specified by:
collectResponseParameters in class AbstractConnectorResponse
collectResponseHeaders
protected void collectResponseHeaders()
getClosable
protected Closeable getClosable()
- Specified by:
getClosable in class AbstractCloseableConnectorResponse
Copyright © 2014 camunda services GmbH. All rights reserved.