Class ServerOutboundWay

    • Constructor Detail

      • ServerOutboundWay

        public ServerOutboundWay​(Connection<Server> connection,
                                 int bufferSize)
        Deprecated.
        Constructor.
        Parameters:
        connection - The parent connection.
        bufferSize - The byte buffer size.
    • Method Detail

      • addHeaders

        protected void addHeaders​(Series<Header> headers)
        Deprecated.
        Description copied from class: OutboundWay
        Add all the headers, including the general, the message specific and the entity headers.
        Specified by:
        addHeaders in class OutboundWay
        Parameters:
        headers - The headers to update.
      • addResponseHeaders

        protected void addResponseHeaders​(Series<Header> headers)
        Deprecated.
        Adds the response headers.
        Parameters:
        headers - The headers series to update.
      • getActualMessage

        public Response getActualMessage()
        Deprecated.
        Description copied from class: Way
        Returns the actual message, request or response.
        Specified by:
        getActualMessage in class Way
        Returns:
        The actual message, request or response.
      • getConnection

        public Connection<Server> getConnection()
        Deprecated.
        Description copied from class: Way
        Returns the parent connection.
        Overrides:
        getConnection in class Way
        Returns:
        The parent connection.
      • onMessageCompleted

        public void onMessageCompleted​(boolean endDetected)
                                throws java.io.IOException
        Deprecated.
        Description copied from class: Way
        Callback method invoked when the current message has been completely received or sent.
        Specified by:
        onMessageCompleted in interface CompletionListener
        Overrides:
        onMessageCompleted in class OutboundWay
        Parameters:
        endDetected - Indicates if the end of the socket channel was detected.
        Throws:
        java.io.IOException
      • writeStartLine

        protected void writeStartLine()
                               throws java.io.IOException
        Deprecated.
        Description copied from class: OutboundWay
        Writes the start line of the current outbound message.
        Specified by:
        writeStartLine in class OutboundWay
        Throws:
        java.io.IOException