org.eclipse.jetty.websocket
Interface WebSocket


public interface WebSocket


Nested Class Summary
static interface WebSocket.Outbound
           
 
Field Summary
static int CLOSE_DATA
           
static int CLOSE_LARGE
           
static int CLOSE_NORMAL
           
static int CLOSE_PROTOCOL
           
static int CLOSE_SHUTDOWN
           
static byte LENGTH_FRAME
          Deprecated. 
static byte OP_BINARY
           
static byte OP_CLOSE
           
static byte OP_CONTINUATION
           
static byte OP_PING
           
static byte OP_PONG
           
static byte OP_TEXT
           
static byte SENTINEL_FRAME
          Deprecated. 
 
Method Summary
 void onConnect(WebSocket.Outbound outbound)
           
 void onDisconnect()
           
 void onFragment(boolean more, byte opcode, byte[] data, int offset, int length)
           
 void onMessage(byte opcode, byte[] data, int offset, int length)
           
 void onMessage(byte opcode, String data)
           
 

Field Detail

LENGTH_FRAME

@Deprecated
static final byte LENGTH_FRAME
Deprecated. 
See Also:
Constant Field Values

SENTINEL_FRAME

@Deprecated
static final byte SENTINEL_FRAME
Deprecated. 
See Also:
Constant Field Values

OP_CONTINUATION

static final byte OP_CONTINUATION
See Also:
Constant Field Values

OP_CLOSE

static final byte OP_CLOSE
See Also:
Constant Field Values

OP_PING

static final byte OP_PING
See Also:
Constant Field Values

OP_PONG

static final byte OP_PONG
See Also:
Constant Field Values

OP_TEXT

static final byte OP_TEXT
See Also:
Constant Field Values

OP_BINARY

static final byte OP_BINARY
See Also:
Constant Field Values

CLOSE_NORMAL

static final int CLOSE_NORMAL
See Also:
Constant Field Values

CLOSE_SHUTDOWN

static final int CLOSE_SHUTDOWN
See Also:
Constant Field Values

CLOSE_PROTOCOL

static final int CLOSE_PROTOCOL
See Also:
Constant Field Values

CLOSE_DATA

static final int CLOSE_DATA
See Also:
Constant Field Values

CLOSE_LARGE

static final int CLOSE_LARGE
See Also:
Constant Field Values
Method Detail

onConnect

void onConnect(WebSocket.Outbound outbound)

onMessage

void onMessage(byte opcode,
               String data)

onFragment

void onFragment(boolean more,
                byte opcode,
                byte[] data,
                int offset,
                int length)

onMessage

void onMessage(byte opcode,
               byte[] data,
               int offset,
               int length)

onDisconnect

void onDisconnect()


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