Class HttpExchange


  • public class HttpExchange
    extends java.lang.Object
    • Method Detail

      • getRequestFailure

        public java.lang.Throwable getRequestFailure()
      • getResponseFailure

        public java.lang.Throwable getResponseFailure()
      • associate

        boolean associate​(HttpChannel channel)

        Associates the given channel to this exchange.

        Works in strict collaboration with HttpChannel.associate(HttpExchange).

        Parameters:
        channel - the channel to associate to this exchange
        Returns:
        true if the channel could be associated, false otherwise
      • disassociate

        void disassociate​(HttpChannel channel)
      • getHttpChannel

        private HttpChannel getHttpChannel()
      • requestComplete

        public boolean requestComplete​(java.lang.Throwable failure)
      • completeRequest

        private boolean completeRequest​(java.lang.Throwable failure)
      • responseComplete

        public boolean responseComplete​(java.lang.Throwable failure)
      • completeResponse

        private boolean completeResponse​(java.lang.Throwable failure)
      • terminateRequest

        public Result terminateRequest()
      • terminateResponse

        public Result terminateResponse()
      • abort

        public boolean abort​(java.lang.Throwable failure)
      • notifyFailureComplete

        private void notifyFailureComplete​(java.lang.Throwable failure)
      • resetResponse

        public void resetResponse()
      • proceed

        public void proceed​(java.lang.Throwable failure)
      • toString

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