예제 #1
0
 protected void handleClosed() {
   super.handleClosed();
   if (ws != null) {
     ws.handleClosed();
   }
   if (pendingResponse != null) {
     pendingResponse.handleClosed();
   }
 }
예제 #2
0
 private void handleWsFrame(WebSocketFrameInternal frame) {
   try {
     if (ws != null) {
       setContext();
       ws.handleFrame(frame);
     }
   } catch (Throwable t) {
     handleHandlerException(t);
   }
 }
예제 #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);
   }
 }
예제 #4
0
 @Override
 public void handleInterestedOpsChanged() {
   try {
     if (!doWriteQueueFull()) {
       setContext();
       if (pendingResponse != null) {
         pendingResponse.handleDrained();
       } else if (ws != null) {
         ws.writable();
       }
     }
   } catch (Throwable t) {
     handleHandlerException(t);
   }
 }