Class ClientResponse

    • Field Detail

      • properties

        protected java.util.Map<java.lang.String,​java.lang.Object> properties
      • bufferedEntity

        protected byte[] bufferedEntity
    • Method Detail

      • setHeaders

        public void setHeaders​(javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> headers)
      • setProperties

        public void setProperties​(java.util.Map<java.lang.String,​java.lang.Object> properties)
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getProperties()
      • setClientConfiguration

        public void setClientConfiguration​(ClientConfiguration configuration)
      • noReleaseConnection

        public void noReleaseConnection()
        In case of an InputStream or Reader and a invocation that returns no Response object, we need to make sure the GC does not close the returned InputStream or Reader
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • getInputStream

        protected abstract java.io.InputStream getInputStream()
      • getEntityStream

        protected java.io.InputStream getEntityStream()
      • setInputStream

        protected abstract void setInputStream​(java.io.InputStream is)
      • releaseConnection

        public abstract void releaseConnection()
                                        throws java.io.IOException
        release underlying connection but do not close
        Throws:
        java.io.IOException
      • readEntity

        public <T> T readEntity​(java.lang.Class<T> type,
                                java.lang.reflect.Type genericType,
                                java.lang.annotation.Annotation[] anns)
        Overrides:
        readEntity in class BuiltResponse
      • readFrom

        protected <T> java.lang.Object readFrom​(java.lang.Class<T> type,
                                                java.lang.reflect.Type genericType,
                                                javax.ws.rs.core.MediaType media,
                                                java.lang.annotation.Annotation[] annotations)