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