Class HttpChannel

    • Field Detail

      • LOG

        protected static final Logger LOG
    • Constructor Detail

    • Method Detail

      • destroy

        public void destroy()
      • associate

        public boolean associate​(HttpExchange exchange)

        Associates the given exchange to this channel in order to be sent over the network.

        If the association is successful, the exchange can be sent. Otherwise, the channel must be disposed because whoever terminated the exchange did not do it - it did not have the channel yet.

        Parameters:
        exchange - the exchange to associate
        Returns:
        true if the association was successful, false otherwise
      • disassociate

        public boolean disassociate​(HttpExchange exchange)
      • getHttpSender

        protected abstract HttpSender getHttpSender()
      • getHttpReceiver

        protected abstract HttpReceiver getHttpReceiver()
      • send

        public void send()
      • send

        public abstract void send​(HttpExchange exchange)
      • release

        public abstract void release()
      • proceed

        public void proceed​(HttpExchange exchange,
                            java.lang.Throwable failure)
      • abort

        public boolean abort​(HttpExchange exchange,
                             java.lang.Throwable requestFailure,
                             java.lang.Throwable responseFailure)
      • abortResponse

        public boolean abortResponse​(HttpExchange exchange,
                                     java.lang.Throwable failure)
      • exchangeTerminated

        public void exchangeTerminated​(HttpExchange exchange,
                                       Result result)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object