Class DefaultResponse

  • All Implemented Interfaces:
    Response, java.io.Closeable, java.lang.AutoCloseable

    public class DefaultResponse
    extends java.lang.Object
    implements Response
    • Constructor Detail

      • DefaultResponse

        public DefaultResponse​(org.apache.http.client.methods.HttpUriRequest request,
                               org.apache.http.impl.client.CloseableHttpClient client,
                               org.apache.http.client.methods.CloseableHttpResponse response)
    • Method Detail

      • getRequest

        public org.apache.http.client.methods.HttpUriRequest getRequest()
        Specified by:
        getRequest in interface Response
      • getContent

        public java.io.InputStream getContent()
                                       throws com.synopsys.integration.exception.IntegrationException
        Specified by:
        getContent in interface Response
        Throws:
        com.synopsys.integration.exception.IntegrationException
      • getContentString

        public java.lang.String getContentString()
                                          throws com.synopsys.integration.exception.IntegrationException
        Specified by:
        getContentString in interface Response
        Throws:
        com.synopsys.integration.exception.IntegrationException
      • getContentString

        public java.lang.String getContentString​(java.nio.charset.Charset encoding)
                                          throws com.synopsys.integration.exception.IntegrationException
        Specified by:
        getContentString in interface Response
        Throws:
        com.synopsys.integration.exception.IntegrationException
      • getContentType

        public java.lang.String getContentType()
        Specified by:
        getContentType in interface Response
      • getHeaders

        public java.util.Map<java.lang.String,​java.lang.String> getHeaders()
        Specified by:
        getHeaders in interface Response
      • getHeaderValue

        public java.lang.String getHeaderValue​(java.lang.String name)
        Specified by:
        getHeaderValue in interface Response
      • getActualResponse

        public org.apache.http.client.methods.CloseableHttpResponse getActualResponse()
        Specified by:
        getActualResponse in interface Response
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface Response
        Throws:
        java.io.IOException
      • getLastModified

        public long getLastModified()
                             throws com.synopsys.integration.exception.IntegrationException
        Specified by:
        getLastModified in interface Response
        Throws:
        com.synopsys.integration.exception.IntegrationException