public class SockJsFrame extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SockJsFrame.DefaultFrameFormat |
static interface |
SockJsFrame.FrameFormat |
| Modifier and Type | Method and Description |
|---|---|
static SockJsFrame |
closeFrame(int code,
String reason) |
static SockJsFrame |
closeFrameAnotherConnectionOpen() |
static SockJsFrame |
closeFrameGoAway() |
boolean |
equals(Object other) |
static String |
escapeCharacters(char[] characters)
See "JSON Unicode Encoding" section of SockJS protocol.
|
String |
getContent() |
byte[] |
getContentBytes() |
int |
hashCode() |
static SockJsFrame |
heartbeatFrame() |
static SockJsFrame |
messageFrame(String... messages) |
static SockJsFrame |
openFrame() |
String |
toString() |
public static SockJsFrame openFrame()
public static SockJsFrame heartbeatFrame()
public static SockJsFrame messageFrame(String... messages)
public static SockJsFrame closeFrameGoAway()
public static SockJsFrame closeFrameAnotherConnectionOpen()
public static SockJsFrame closeFrame(int code, String reason)
public String getContent()
public byte[] getContentBytes()
public static String escapeCharacters(char[] characters)