public class Jackson2SockJsMessageCodec extends AbstractSockJsMessageCodec
Constructor and Description |
---|
Jackson2SockJsMessageCodec() |
Jackson2SockJsMessageCodec(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
Modifier and Type | Method and Description |
---|---|
protected char[] |
applyJsonQuoting(String content)
Apply standard JSON string quoting (see http://www.json.org/).
|
String[] |
decode(String content)
Decode the given SockJS message frame.
|
String[] |
decodeInputStream(InputStream content)
Decode the given SockJS message frame.
|
encode
public Jackson2SockJsMessageCodec()
public Jackson2SockJsMessageCodec(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public String[] decode(String content) throws IOException
SockJsMessageCodec
content
- the SockJS message framenull
IOException
- if the content could not be parsedpublic String[] decodeInputStream(InputStream content) throws IOException
SockJsMessageCodec
content
- the SockJS message framenull
IOException
- if the content could not be parsedprotected char[] applyJsonQuoting(String content)
AbstractSockJsMessageCodec
applyJsonQuoting
in class AbstractSockJsMessageCodec