Class AbstractContentEncoder

    • Constructor Detail

      • AbstractContentEncoder

        public AbstractContentEncoder​(java.nio.channels.WritableByteChannel channel,
                                      SessionOutputBuffer buffer,
                                      HttpTransportMetricsImpl metrics)
        Creates an instance of this class.
        Parameters:
        channel - the destination channel.
        buffer - the session output buffer that can be used to store session data for intermediate processing.
        metrics - Transport metrics of the underlying HTTP transport.
    • Method Detail

      • isCompleted

        public boolean isCompleted()
        Description copied from interface: ContentEncoder
        Returns true if the entity has been transferred in its entirety.
        Specified by:
        isCompleted in interface ContentEncoder
        Returns:
        true if all the content has been produced, false otherwise.
      • complete

        public void complete()
                      throws java.io.IOException
        Description copied from interface: ContentEncoder
        Terminates the content stream.
        Specified by:
        complete in interface ContentEncoder
        Throws:
        java.io.IOException - if I/O error occurs while writing content