Class ServerInboundWay

    • Constructor Detail

      • ServerInboundWay

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

      • createResponse

        protected abstract Response createResponse​(Request request)
        Deprecated.
        Creates a response object for the given request.
        Parameters:
        request - The parent request.
        Returns:
        The new response object.
      • 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<Server> getConnection()
        Deprecated.
        Description copied from class: Way
        Returns the parent connection.
        Overrides:
        getConnection in class Way
        Returns:
        The parent connection.
      • getHelper

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

        protected boolean hasIoInterest()
        Deprecated.
        Description copied from class: Way
        Indicates if we want to be selected for IO processing when the socket related socket is prepared.
        Overrides:
        hasIoInterest in class Way
        Returns:
        True if we want to be selected for IO processing when the socket is ready.
      • 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
      • onReceived

        protected void onReceived​(Response message)
                           throws java.io.IOException
        Deprecated.
        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
      • updateState

        public void updateState()
        Deprecated.
        Description copied from class: Way
        Updates the way IO and message states.
        Overrides:
        updateState in class InboundWay