org.eclipse.jetty.websocket
Interface WebSocket.FrameConnection

All Superinterfaces:
WebSocket.Connection
All Known Implementing Classes:
WebSocketConnectionD00
Enclosing interface:
WebSocket

public static interface WebSocket.FrameConnection
extends WebSocket.Connection

Frame Level Connection

The Connection interface at the level of sending/receiving frames rather than messages.


Method Summary
 byte binaryOpcode()
           
 void close(int closeCode, String message)
           
 boolean isBinary(byte opcode)
           
 boolean isClose(byte opcode)
           
 boolean isContinuation(byte opcode)
           
 boolean isControl(byte opcode)
           
 boolean isMessageComplete(byte flags)
           
 boolean isPing(byte opcode)
           
 boolean isPong(byte opcode)
           
 boolean isText(byte opcode)
           
 void sendControl(byte control, byte[] data, int offset, int length)
           
 void sendFrame(byte flags, byte opcode, byte[] data, int offset, int length)
           
 byte textOpcode()
           
 
Methods inherited from interface org.eclipse.jetty.websocket.WebSocket.Connection
disconnect, getMaxBinaryMessageSize, getMaxTextMessageSize, getProtocol, isOpen, sendMessage, sendMessage, setMaxBinaryMessageSize, setMaxTextMessageSize
 

Method Detail

isMessageComplete

boolean isMessageComplete(byte flags)

close

void close(int closeCode,
           String message)

binaryOpcode

byte binaryOpcode()

textOpcode

byte textOpcode()

isControl

boolean isControl(byte opcode)

isText

boolean isText(byte opcode)

isBinary

boolean isBinary(byte opcode)

isContinuation

boolean isContinuation(byte opcode)

isClose

boolean isClose(byte opcode)

isPing

boolean isPing(byte opcode)

isPong

boolean isPong(byte opcode)

sendControl

void sendControl(byte control,
                 byte[] data,
                 int offset,
                 int length)
                 throws IOException
Throws:
IOException

sendFrame

void sendFrame(byte flags,
               byte opcode,
               byte[] data,
               int offset,
               int length)
               throws IOException
Throws:
IOException


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