encode(String[]).
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract char[] | |
| public String | encode(String...
the messages to encode messages)Implements org. Encode the given messages as a SockJS message frame. |
| private String | |
| private boolean |
| AbstractSockJsMessageCodec | back to summary |
|---|---|
| public AbstractSockJsMessageCodec() | |
| applyJsonQuoting | back to summary |
|---|---|
| protected abstract char[] applyJsonQuoting(String content) Apply standard JSON string quoting (see json.org). | |
| encode | back to summary |
|---|---|
| public String encode(String... messages) Implements org. Doc from org. Encode the given messages as a SockJS message frame. Aside from applying standard JSON quoting to each message, there are some additional JSON Unicode escaping rules. See the "JSON Unicode Encoding" section of SockJS protocol (i.e. the protocol test suite). | |
| escapeSockJsSpecialChars | back to summary |
|---|---|
| private String escapeSockJsSpecialChars(char[] characters) See "JSON Unicode Encoding" section of SockJS protocol. | |
| isSockJsSpecialChar | back to summary |
|---|---|
| private boolean isSockJsSpecialChar(char ch) See `escapable_by_server` variable in the SockJS protocol test suite. | |