public class JacksonSockJsMessageCodec extends AbstractSockJsMessageCodec
| Constructor and Description |
|---|
JacksonSockJsMessageCodec() |
JacksonSockJsMessageCodec(org.codehaus.jackson.map.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.
|
encodepublic JacksonSockJsMessageCodec()
public JacksonSockJsMessageCodec(org.codehaus.jackson.map.ObjectMapper objectMapper)
public String[] decode(String content) throws IOException
SockJsMessageCodeccontent - the SockJS message framenullIOException - if the content could not be parsedpublic String[] decodeInputStream(InputStream content) throws IOException
SockJsMessageCodeccontent - the SockJS message framenullIOException - if the content could not be parsedprotected char[] applyJsonQuoting(String content)
AbstractSockJsMessageCodecapplyJsonQuoting in class AbstractSockJsMessageCodec