Class HttpOutput

    • Constructor Detail

      • HttpOutput

        public HttpOutput​(HttpChannel channel)
        Deprecated.
    • Method Detail

      • getHttpChannel

        public HttpChannel getHttpChannel()
        Deprecated.
      • isWritten

        public boolean isWritten()
        Deprecated.
      • getWritten

        public long getWritten()
        Deprecated.
      • reopen

        public void reopen()
        Deprecated.
      • softClose

        public void softClose()
        Deprecated.
      • complete

        public void complete​(Callback callback)
        Deprecated.
      • completed

        public void completed​(Throwable failure)
        Deprecated.
        Called to indicate that the request cycle has been completed.
      • getBuffer

        public ByteBuffer getBuffer()
        Deprecated.
      • isClosed

        public boolean isClosed()
        Deprecated.
      • isAsync

        public boolean isAsync()
        Deprecated.
      • print

        public void print​(String s)
                   throws IOException
        Deprecated.
        Description copied from class: ServletOutputStream
        Writes a String to the client, without a carriage return-line feed (CRLF) character at the end.
        Overrides:
        print in class ServletOutputStream
        Parameters:
        s - the String to send to the client
        Throws:
        IOException - if an input or output exception occurred
      • println

        public void println​(String s)
                     throws IOException
        Deprecated.
        Description copied from class: ServletOutputStream
        Writes a String to the client, followed by a carriage return-line feed (CRLF).
        Overrides:
        println in class ServletOutputStream
        Parameters:
        s - the String to write to the client
        Throws:
        IOException - if an input or output exception occurred
      • println

        public void println​(boolean b)
                     throws IOException
        Deprecated.
        Description copied from class: ServletOutputStream
        Writes a boolean value to the client, followed by a carriage return-line feed (CRLF).
        Overrides:
        println in class ServletOutputStream
        Parameters:
        b - the boolean value to write to the client
        Throws:
        IOException - if an input or output exception occurred
      • println

        public void println​(char c)
                     throws IOException
        Deprecated.
        Description copied from class: ServletOutputStream
        Writes a character to the client, followed by a carriage return-line feed (CRLF).
        Overrides:
        println in class ServletOutputStream
        Parameters:
        c - the character to write to the client
        Throws:
        IOException - if an input or output exception occurred
      • println

        public void println​(int i)
                     throws IOException
        Deprecated.
        Description copied from class: ServletOutputStream
        Writes an int to the client, followed by a carriage return-line feed (CRLF) character.
        Overrides:
        println in class ServletOutputStream
        Parameters:
        i - the int to write to the client
        Throws:
        IOException - if an input or output exception occurred
      • println

        public void println​(long l)
                     throws IOException
        Deprecated.
        Description copied from class: ServletOutputStream
        Writes a long value to the client, followed by a carriage return-line feed (CRLF).
        Overrides:
        println in class ServletOutputStream
        Parameters:
        l - the long value to write to the client
        Throws:
        IOException - if an input or output exception occurred
      • println

        public void println​(float f)
                     throws IOException
        Deprecated.
        Description copied from class: ServletOutputStream
        Writes a float value to the client, followed by a carriage return-line feed (CRLF).
        Overrides:
        println in class ServletOutputStream
        Parameters:
        f - the float value to write to the client
        Throws:
        IOException - if an input or output exception occurred
      • println

        public void println​(double d)
                     throws IOException
        Deprecated.
        Description copied from class: ServletOutputStream
        Writes a double value to the client, followed by a carriage return-line feed (CRLF).
        Overrides:
        println in class ServletOutputStream
        Parameters:
        d - the double value to write to the client
        Throws:
        IOException - if an input or output exception occurred
      • sendContent

        public void sendContent​(ByteBuffer content)
                         throws IOException
        Deprecated.
        Blocking send of whole content.
        Parameters:
        content - The whole content to send
        Throws:
        IOException - if the send fails
      • sendContent

        public void sendContent​(InputStream in)
                         throws IOException
        Deprecated.
        Blocking send of stream content.
        Parameters:
        in - The stream content to send
        Throws:
        IOException - if the send fails
      • sendContent

        public void sendContent​(ReadableByteChannel in)
                         throws IOException
        Deprecated.
        Blocking send of channel content.
        Parameters:
        in - The channel content to send
        Throws:
        IOException - if the send fails
      • sendContent

        public void sendContent​(HttpContent content)
                         throws IOException
        Deprecated.
        Blocking send of HTTP content.
        Parameters:
        content - The HTTP content to send
        Throws:
        IOException - if the send fails
      • sendContent

        public void sendContent​(ByteBuffer content,
                                Callback callback)
        Deprecated.
        Asynchronous send of whole content.
        Parameters:
        content - The whole content to send
        callback - The callback to use to notify success or failure
      • sendContent

        public void sendContent​(InputStream in,
                                Callback callback)
        Deprecated.
        Asynchronous send of stream content. The stream will be closed after reading all content.
        Parameters:
        in - The stream content to send
        callback - The callback to use to notify success or failure
      • sendContent

        public void sendContent​(ReadableByteChannel in,
                                Callback callback)
        Deprecated.
        Asynchronous send of channel content. The channel will be closed after reading all content.
        Parameters:
        in - The channel content to send
        callback - The callback to use to notify success or failure
      • sendContent

        public void sendContent​(HttpContent httpContent,
                                Callback callback)
        Deprecated.
        Asynchronous send of HTTP content.
        Parameters:
        httpContent - The HTTP content to send
        callback - The callback to use to notify success or failure
      • getBufferSize

        public int getBufferSize()
        Deprecated.
      • setBufferSize

        public void setBufferSize​(int size)
        Deprecated.
      • onFlushed

        public void onFlushed​(long bytes)
                       throws IOException
        Deprecated.

        Invoked when bytes have been flushed to the network.

        The number of flushed bytes may be different from the bytes written by the application if an HttpOutput.Interceptor changed them, for example by compressing them.

        Parameters:
        bytes - the number of bytes flushed
        Throws:
        IOException - if the minimum data rate, when set, is not respected
        See Also:
        WriteFlusher.Listener
      • recycle

        public void recycle()
        Deprecated.
      • resetBuffer

        public void resetBuffer()
        Deprecated.
      • run

        public void run()
        Deprecated.
        Specified by:
        run in interface Runnable