Example #1
0
 private void handleChunk(Buffer chunk) {
   try {
     setContext();
     currentRequest.handleData(chunk);
   } catch (Throwable t) {
     handleHandlerException(t);
   }
 }
Example #2
0
 private void handleEnd() {
   try {
     setContext();
     currentRequest.handleEnd();
     currentRequest = null;
   } catch (Throwable t) {
     handleHandlerException(t);
   }
 }
Example #3
0
 @Override
 protected void handleException(Throwable t) {
   super.handleException(t);
   if (currentRequest != null) {
     currentRequest.handleException(t);
   }
   if (pendingResponse != null) {
     pendingResponse.handleException(t);
   }
   if (ws != null) {
     ws.handleException(t);
   }
 }