Class HttpResponseImpl

    • Field Detail

      • httpResponse

        protected org.apache.http.client.methods.CloseableHttpResponse httpResponse
    • Constructor Detail

      • HttpResponseImpl

        public HttpResponseImpl​(org.apache.http.client.methods.CloseableHttpResponse httpResponse)
    • Method Detail

      • getStatusCode

        public java.lang.Integer getStatusCode()
        Specified by:
        getStatusCode in interface HttpResponse
        Returns:
        the HTTP status code of the response
      • getResponse

        public java.lang.String getResponse()
        Specified by:
        getResponse in interface HttpResponse
        Returns:
        the response body or null if non exists
      • getHeaders

        public java.util.Map<java.lang.String,​java.lang.String> getHeaders()
        Specified by:
        getHeaders in interface HttpResponse
        Returns:
        the response headers
      • getHeader

        public java.lang.String getHeader​(java.lang.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​(java.util.Map<java.lang.String,​java.lang.Object> responseParameters)
        Description copied from class: AbstractConnectorResponse
        To be implemented by subclasses for collecting the generic response parameters of a response.
        Specified by:
        collectResponseParameters in class AbstractConnectorResponse
        Parameters:
        responseParameters - a map to save the response parameters in
      • collectResponseHeaders

        protected void collectResponseHeaders()