Class WebSocketFrameMonitoringWebSocketResponse

java.lang.Object
net.targetr.wtm3.net.http.HttpResponse
net.targetr.wtm3.net.http.websocket.WebSocketResponse
net.targetr.rc.monitoring.logs.websocket.WebSocketFrameMonitoringWebSocketResponse
All Implemented Interfaces:
Runnable

public class WebSocketFrameMonitoringWebSocketResponse extends WebSocketResponse
WebSocket response stream for WebSocket frame monitoring.
  • Constructor Details

    • WebSocketFrameMonitoringWebSocketResponse

      public WebSocketFrameMonitoringWebSocketResponse()
      Constructs a new WebSocketFrameMonitoringWebSocketResponse.
  • Method Details

    • notify

      public void notify(WebSocketFrameLogEntry entry)
      Notifies the WebSocket response of a new WebSocket frame log entry.
      Parameters:
      entry - the log entry to add
    • writeResponse

      protected void writeResponse() throws Exception
      Description copied from class: WebSocketResponse
      Called when WebSocket connection is first opened. This method is called once and should not return until all communication with the client is complete. Implementations of this method will typically call writeText() or writeBinary() to send data to the client.
      Specified by:
      writeResponse in class WebSocketResponse
      Throws:
      Exception - If an error occurs while responding to the client.
    • onClose

      protected void onClose()
      Description copied from class: WebSocketResponse
      Called when WebSocket connection is closed by the client.
      Specified by:
      onClose in class WebSocketResponse
    • onReceiveText

      protected void onReceiveText(ReusableBufferList buffers) throws Exception
      Description copied from class: WebSocketResponse
      Called when text is received from the WebSocket.
      Specified by:
      onReceiveText in class WebSocketResponse
      Parameters:
      buffers - The raw data received from the WebSocket as a buffer list
      Throws:
      Exception - If an error occurs while processing the received text.