Package io.vertx.ext.stomp.lite.frame
Interface Frames
-
public interface FramesUtility methods to build commonFrames. It defines a non-STOMP frame (PING) that is used for heartbeats. When such frame is written on the wire it is just the0byte. This class is thread-safe.
-
-
Method Summary
Static Methods Modifier and Type Method Description static FramecreateErrorFrame(java.lang.String message, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.String body)static FramecreateErrorFrame(java.lang.Throwable throwable, boolean includeStackTrace)Creates and error frame for given throwable and includes the stack trace in the body if desiredstatic FramecreateReceiptFrame(java.lang.String receiptId, java.util.Map<java.lang.String,java.lang.String> headers)static Frameping()
-
-
-
Field Detail
-
PING
static final Frame PING
-
-
Method Detail
-
createErrorFrame
static Frame createErrorFrame(java.lang.String message, java.util.Map<java.lang.String,java.lang.String> headers, java.lang.String body)
-
createErrorFrame
static Frame createErrorFrame(java.lang.Throwable throwable, boolean includeStackTrace)
Creates and error frame for given throwable and includes the stack trace in the body if desired- Parameters:
throwable- to create an error frame forincludeStackTrace- true to include the stack trace false to not- Returns:
- the Frame
-
createReceiptFrame
static Frame createReceiptFrame(java.lang.String receiptId, java.util.Map<java.lang.String,java.lang.String> headers)
-
ping
static Frame ping()
-
-