| Modifier and Type | Field and Description |
|---|---|
| public static final Charset | CHARSET
The charset used by SockJS. |
| private static final SockJsFrame | |
| private static final SockJsFrame | |
| private final String | |
| private static final SockJsFrame | |
| private static final SockJsFrame | |
| private final SockJsFrameType |
| Access | Constructor and Description |
|---|---|
| public | SockJsFrame(String
the content (must be a non-empty and represent a valid SockJS frame) content)Create a new instance frame with the given frame content. |
| Modifier and Type | Method and Description |
|---|---|
| public static SockJsFrame | |
| public static SockJsFrame | |
| public static SockJsFrame | |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | |
| public byte[] | |
| public String | |
| public SockJsFrameType | |
| public int | |
| public static SockJsFrame | |
| public static SockJsFrame | |
| public static SockJsFrame | |
| public String |
| CHARSET | back to summary |
|---|---|
| public static final Charset CHARSET The charset used by SockJS. | |
| CLOSE_ANOTHER_CONNECTION_OPEN_FRAME | back to summary |
|---|---|
| private static final SockJsFrame CLOSE_ANOTHER_CONNECTION_OPEN_FRAME | |
| CLOSE_GO_AWAY_FRAME | back to summary |
|---|---|
| private static final SockJsFrame CLOSE_GO_AWAY_FRAME | |
| content | back to summary |
|---|---|
| private final String content | |
| HEARTBEAT_FRAME | back to summary |
|---|---|
| private static final SockJsFrame HEARTBEAT_FRAME | |
| OPEN_FRAME | back to summary |
|---|---|
| private static final SockJsFrame OPEN_FRAME | |
| type | back to summary |
|---|---|
| private final SockJsFrameType type | |
| SockJsFrame | back to summary |
|---|---|
| public SockJsFrame(String content) Create a new instance frame with the given frame content.
| |
| closeFrame | back to summary |
|---|---|
| public static SockJsFrame closeFrame(int code, String reason) | |
| closeFrameAnotherConnectionOpen | back to summary |
|---|---|
| public static SockJsFrame closeFrameAnotherConnectionOpen() | |
| closeFrameGoAway | back to summary |
|---|---|
| public static SockJsFrame closeFrameGoAway() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getContent | back to summary |
|---|---|
| public String getContent() Return the SockJS frame content (never | |
| getContentBytes | back to summary |
|---|---|
| public byte[] getContentBytes() Return the SockJS frame content as a byte array. | |
| getFrameData | back to summary |
|---|---|
| public String getFrameData() Return data contained in a SockJS "message" and "close" frames. Otherwise
for SockJS "open" and "close" frames, which do not contain data, return
| |
| getType | back to summary |
|---|---|
| public SockJsFrameType getType() Return the SockJS frame type. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| heartbeatFrame | back to summary |
|---|---|
| public static SockJsFrame heartbeatFrame() | |
| messageFrame | back to summary |
|---|---|
| public static SockJsFrame messageFrame(SockJsMessageCodec codec, String... messages) | |
| openFrame | back to summary |
|---|---|
| public static SockJsFrame openFrame() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |