Class ClientInboundWay

    • Constructor Detail

      • ClientInboundWay

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

      • copyResponseTransportHeaders

        protected void copyResponseTransportHeaders​(Series<Header> headers,
                                                    Response response)
        Deprecated.
        Copies headers into a response.
        Parameters:
        headers - The headers to copy.
        response - The response to update.
      • createResponse

        protected abstract Response createResponse​(Status status)
        Deprecated.
        Creates a response object for the given status.
        Parameters:
        status - The response status.
        Returns:
        The new response object.
      • createStatus

        protected Status createStatus​(int code)
        Deprecated.
        Returns the status corresponding to a given status code.
        Parameters:
        code - The status code.
        Returns:
        The status corresponding to a given status code.
      • getActualMessage

        public Message 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<Client> getConnection()
        Deprecated.
        Description copied from class: Way
        Returns the parent connection.
        Overrides:
        getConnection in class Way
        Returns:
        The parent connection.
      • getHelper

        public ClientConnectionHelper getHelper()
        Deprecated.
        Description copied from class: Way
        Returns the parent connector helper.
        Overrides:
        getHelper in class Way
        Returns:
        The parent connector helper.
      • getInterestOperations

        public int getInterestOperations()
        Deprecated.
        Description copied from class: Way
        Returns the operations of interest.
        Overrides:
        getInterestOperations in class InboundWay
        Returns:
        The operations of interest.
      • onHeadersCompleted

        protected void onHeadersCompleted()
                                   throws java.io.IOException
        Deprecated.
        Description copied from class: InboundWay
        Callback invoked when a message has been received. Note that only the start line and the headers must have been received, not the optional body.
        Overrides:
        onHeadersCompleted in class InboundWay
        Throws:
        java.io.IOException
      • 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 InboundWay
        Parameters:
        endDetected - Indicates if the end of the socket channel was detected.
        Throws:
        java.io.IOException
      • onReceived

        protected void onReceived​(Response message)
                           throws java.io.IOException
        Deprecated.
        Description copied from class: InboundWay
        Call back invoked when the message is received.
        Specified by:
        onReceived in class InboundWay
        Parameters:
        message - The new message received.
        Throws:
        java.io.IOException
      • readStartLine

        protected void readStartLine()
                              throws java.io.IOException
        Deprecated.
        Description copied from class: InboundWay
        Read the start line of the current message received.
        Specified by:
        readStartLine in class InboundWay
        Throws:
        java.io.IOException