Package io.vertx.ext.stomp.lite.frame
Class FrameParser
- java.lang.Object
-
- io.vertx.ext.stomp.lite.frame.FrameParser
-
- All Implemented Interfaces:
io.vertx.core.Handler<io.vertx.core.buffer.Buffer>
public class FrameParser extends java.lang.Object implements io.vertx.core.Handler<io.vertx.core.buffer.Buffer>A STOMP frame parser compliant with the specification (including header decoding).
-
-
Constructor Summary
Constructors Constructor Description FrameParser()FrameParser(StompServerOptions properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FrameParsererrorHandler(io.vertx.core.Handler<FrameException> handler)voidhandle(io.vertx.core.buffer.Buffer event)Something has happened, so handle it.FrameParserhandler(io.vertx.core.Handler<Frame> handler)
-
-
-
Field Detail
-
UTF_8
public static final java.lang.String UTF_8
- See Also:
- Constant Field Values
-
NULL
public static final java.lang.String NULL
- See Also:
- Constant Field Values
-
EOL
public static final java.lang.String EOL
- See Also:
- Constant Field Values
-
CARRIAGE_RETURN
public static final java.lang.String CARRIAGE_RETURN
- See Also:
- Constant Field Values
-
LINE_FEED
public static final char LINE_FEED
- See Also:
- Constant Field Values
-
COLON
public static final java.lang.String COLON
- See Also:
- Constant Field Values
-
ESCAPE
public static final char ESCAPE
- See Also:
- Constant Field Values
-
COMMA
public static final java.lang.String COMMA
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FrameParser
public FrameParser(StompServerOptions properties)
-
FrameParser
public FrameParser()
-
-
Method Detail
-
handler
public FrameParser handler(io.vertx.core.Handler<Frame> handler)
-
errorHandler
public FrameParser errorHandler(io.vertx.core.Handler<FrameException> handler)
-
handle
public void handle(io.vertx.core.buffer.Buffer event)
Something has happened, so handle it.- Specified by:
handlein interfaceio.vertx.core.Handler<io.vertx.core.buffer.Buffer>- Parameters:
event- the event to handle
-
-