WebSocket.OnControl (Jetty :: Aggregate :: All core Jetty 7.6.8.v20121106 API)
Date: 2012-11-06

org.eclipse.jetty.websocket

## Interface WebSocket.OnControl

- All Superinterfaces:
    WebSocket
  Enclosing interface:
    WebSocket

      public static interface WebSocket.OnControl
      extends WebSocket

  A nested WebSocket interface for receiving control messages

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.eclipse.jetty.websocket.WebSocket

      `WebSocket.Connection, WebSocket.FrameConnection, WebSocket.OnBinaryMessage, WebSocket.OnControl, WebSocket.OnFrame, WebSocket.OnTextMessage`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `onControl(byte controlCode, byte[] data, int offset, int length)` Called when a control message has been received.

    - ### Methods inherited from interface org.eclipse.jetty.websocket.WebSocket

      `onClose, onOpen`

- - ### Method Detail

    - #### onControl

          boolean onControl(byte controlCode,
                          byte[] data,
                          int offset,
                          int length)

      Called when a control message has been received.
      Parameters:
        `controlCode` -
        `data` -
        `offset` -
        `length` -
      Returns:
        true if this call has completely handled the control message and no further processing is needed.

Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.