Class Parser
- java.lang.Object
-
- org.eclipse.jetty.websocket.common.Parser
-
public class Parser extends java.lang.Object
Parsing of a frames in WebSocket land.
-
-
Constructor Summary
Constructors Constructor Description Parser(WebSocketPolicy wspolicy, ByteBufferPool bufferPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configureFromExtensions(java.util.List<? extends Extension> exts)
IncomingFrames
getIncomingFramesHandler()
long
getMessagesIn()
WebSocketPolicy
getPolicy()
boolean
isRsv1InUse()
boolean
isRsv2InUse()
boolean
isRsv3InUse()
protected void
notifyFrame(Frame f)
void
parse(java.nio.ByteBuffer buffer)
void
parseSingleFrame(java.nio.ByteBuffer buffer)
void
setIncomingFramesHandler(IncomingFrames incoming)
java.lang.String
toString()
-
-
-
Constructor Detail
-
Parser
public Parser(WebSocketPolicy wspolicy, ByteBufferPool bufferPool)
-
-
Method Detail
-
configureFromExtensions
public void configureFromExtensions(java.util.List<? extends Extension> exts)
-
getIncomingFramesHandler
public IncomingFrames getIncomingFramesHandler()
-
getPolicy
public WebSocketPolicy getPolicy()
-
isRsv1InUse
public boolean isRsv1InUse()
-
isRsv2InUse
public boolean isRsv2InUse()
-
isRsv3InUse
public boolean isRsv3InUse()
-
notifyFrame
protected void notifyFrame(Frame f) throws WebSocketException
- Throws:
WebSocketException
-
parse
public void parse(java.nio.ByteBuffer buffer) throws WebSocketException
- Throws:
WebSocketException
-
parseSingleFrame
public void parseSingleFrame(java.nio.ByteBuffer buffer) throws WebSocketException
- Throws:
WebSocketException
-
setIncomingFramesHandler
public void setIncomingFramesHandler(IncomingFrames incoming)
-
getMessagesIn
public long getMessagesIn()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-