Class NHttpEntityWrapper

    • Constructor Detail

      • NHttpEntityWrapper

        public NHttpEntityWrapper​(HttpEntity httpEntity)
                           throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
    • Method Detail

      • getContent

        public java.io.InputStream getContent()
                                       throws java.io.IOException,
                                              java.lang.UnsupportedOperationException
        Deprecated.
        This method throws UnsupportedOperationException.
        Specified by:
        getContent in interface HttpEntity
        Overrides:
        getContent in class HttpEntityWrapper
        Returns:
        content stream of the entity.
        Throws:
        java.io.IOException - if the stream could not be created
        java.lang.UnsupportedOperationException - if entity content cannot be represented as InputStream.
        See Also:
        HttpEntity.isRepeatable()
      • isStreaming

        public boolean isStreaming()
        Deprecated.
        Description copied from interface: HttpEntity
        Tells whether this entity depends on an underlying stream. Streamed entities that read data directly from the socket should return true. Self-contained entities should return false. Wrapping entities should delegate this call to the wrapped entity.
        Specified by:
        isStreaming in interface HttpEntity
        Overrides:
        isStreaming in class HttpEntityWrapper
        Returns:
        true if the entity content is streamed, false otherwise
      • writeTo

        public void writeTo​(java.io.OutputStream out)
                     throws java.io.IOException,
                            java.lang.UnsupportedOperationException
        Deprecated.
        This method throws UnsupportedOperationException.
        Specified by:
        writeTo in interface HttpEntity
        Overrides:
        writeTo in class HttpEntityWrapper
        Parameters:
        out - the output stream to write entity content to
        Throws:
        java.io.IOException - if an I/O error occurs
        java.lang.UnsupportedOperationException
      • produceContent

        public void produceContent​(ContentEncoder encoder,
                                   IOControl ioctrl)
                            throws java.io.IOException
        Deprecated.
        Description copied from interface: ProducingNHttpEntity
        Notification that content should be written to the encoder. IOControl instance passed as a parameter to the method can be used to suspend output events if the entity is temporarily unable to produce more content.

        When all content is finished, this MUST call ContentEncoder.complete(). Failure to do so could result in the entity never being written.

        Specified by:
        produceContent in interface ProducingNHttpEntity
        Parameters:
        encoder - content encoder.
        ioctrl - I/O control of the underlying connection.
        Throws:
        java.io.IOException