public abstract class Extension extends Object implements OutgoingFrames, IncomingFrames
| Constructor and Description |
|---|
Extension() |
| Modifier and Type | Method and Description |
|---|---|
ByteBufferPool |
getBufferPool() |
ExtensionConfig |
getConfig() |
String |
getName() |
IncomingFrames |
getNextIncomingFrames() |
OutgoingFrames |
getNextOutgoingFrames() |
String |
getParameterizedName() |
WebSocketPolicy |
getPolicy() |
void |
incoming(WebSocketException e) |
void |
incoming(WebSocketFrame frame) |
void |
nextIncoming(WebSocketException e)
Convenience method for
#getNextIncomingFrames()#incoming(WebSocketException) |
void |
nextIncoming(WebSocketFrame frame)
Convenience method for
#getNextIncomingFrames()#incoming(WebSocketFrame) |
<C> void |
nextOutput(C context,
Callback<C> callback,
WebSocketFrame frame)
Convenience method for
#getNextOutgoingFrames()#output(WebSocketFrame) |
<C> void |
nextOutputNoCallback(WebSocketFrame frame) |
<C> void |
output(C context,
Callback<C> callback,
WebSocketFrame frame) |
void |
setBufferPool(ByteBufferPool bufferPool) |
void |
setConfig(ExtensionConfig config) |
void |
setNextIncomingFrames(IncomingFrames nextIncomingFramesHandler) |
void |
setNextOutgoingFrames(OutgoingFrames nextOutgoingFramesHandler) |
void |
setPolicy(WebSocketPolicy policy) |
boolean |
useRsv1() |
boolean |
useRsv2() |
boolean |
useRsv3() |
public ByteBufferPool getBufferPool()
public ExtensionConfig getConfig()
public String getName()
public IncomingFrames getNextIncomingFrames()
public OutgoingFrames getNextOutgoingFrames()
public String getParameterizedName()
public WebSocketPolicy getPolicy()
public void incoming(WebSocketException e)
incoming in interface IncomingFramespublic void incoming(WebSocketFrame frame)
incoming in interface IncomingFramespublic void nextIncoming(WebSocketException e)
#getNextIncomingFrames()#incoming(WebSocketException)e - the exception to pass to the next input/incomingpublic void nextIncoming(WebSocketFrame frame)
#getNextIncomingFrames()#incoming(WebSocketFrame)frame - the frame to send to the next input/incomingpublic <C> void nextOutput(C context,
Callback<C> callback,
WebSocketFrame frame)
throws IOException
#getNextOutgoingFrames()#output(WebSocketFrame)frame - the frame to send to the next outputIOExceptionpublic <C> void nextOutputNoCallback(WebSocketFrame frame) throws IOException
IOExceptionpublic <C> void output(C context,
Callback<C> callback,
WebSocketFrame frame)
throws IOException
output in interface OutgoingFramesIOExceptionpublic void setBufferPool(ByteBufferPool bufferPool)
public void setConfig(ExtensionConfig config)
public void setNextIncomingFrames(IncomingFrames nextIncomingFramesHandler)
public void setNextOutgoingFrames(OutgoingFrames nextOutgoingFramesHandler)
public void setPolicy(WebSocketPolicy policy)
public boolean useRsv1()
public boolean useRsv2()
public boolean useRsv3()
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.