public class AbstractExtension extends Object implements Extension
Constructor and Description |
---|
AbstractExtension(String name) |
Modifier and Type | Method and Description |
---|---|
void |
addFrame(byte flags,
byte opcode,
byte[] content,
int offset,
int length) |
void |
bind(WebSocket.FrameConnection connection,
WebSocketParser.FrameHandler incoming,
WebSocketGenerator outgoing) |
byte |
clearFlag(byte flags,
int rsv) |
void |
close(int code,
String message) |
int |
flush() |
WebSocket.FrameConnection |
getConnection() |
String |
getInitParameter(String name) |
int |
getInitParameter(String name,
int dft) |
String |
getInitParameter(String name,
String dft) |
String |
getName() |
String |
getParameterizedName() |
boolean |
init(Map<String,String> parameters) |
boolean |
isBufferEmpty() |
boolean |
isFlag(byte flags,
int rsv) |
void |
onFrame(byte flags,
byte opcode,
Buffer buffer) |
byte |
setFlag(byte flags,
int rsv) |
String |
toString() |
public AbstractExtension(String name)
public WebSocket.FrameConnection getConnection()
public int getInitParameter(String name, int dft)
public void bind(WebSocket.FrameConnection connection, WebSocketParser.FrameHandler incoming, WebSocketGenerator outgoing)
public String getParameterizedName()
getParameterizedName
in interface Extension
public void onFrame(byte flags, byte opcode, Buffer buffer)
onFrame
in interface WebSocketParser.FrameHandler
public void close(int code, String message)
close
in interface WebSocketParser.FrameHandler
public int flush() throws IOException
flush
in interface WebSocketGenerator
IOException
public boolean isBufferEmpty()
isBufferEmpty
in interface WebSocketGenerator
public void addFrame(byte flags, byte opcode, byte[] content, int offset, int length) throws IOException
addFrame
in interface WebSocketGenerator
IOException
public byte setFlag(byte flags, int rsv)
public byte clearFlag(byte flags, int rsv)
public boolean isFlag(byte flags, int rsv)
Copyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.