Class ChunkedHttpPipelineResponse


  • public abstract class ChunkedHttpPipelineResponse
    extends HttpPipelineResponse
    This specific pipeline implements a chunked http transfer encoding.
    Author:
    javaito.
    • Constructor Detail

      • ChunkedHttpPipelineResponse

        public ChunkedHttpPipelineResponse​(int bufferSize)
    • Method Detail

      • wrap

        protected int wrap​(java.nio.ByteBuffer result,
                           HttpPipelineResponse.StreamingPackage streamingPackage,
                           int size)
        Wrap the buffer with the chunked encoding separators.
        Overrides:
        wrap in class HttpPipelineResponse
        Parameters:
        result - In this instance of the byte buffer, this method must put the byte to wrap the source data and the source data.
        streamingPackage - All the bytes read from the application source.
        size - Size of the buffer used to read the application source.
        Returns:
        Returns the amount of bytes read.