public class Jackson2SockJsMessageCodec extends AbstractSockJsMessageCodec
It customizes Jackson's default properties with the following ones:
MapperFeature.DEFAULT_VIEW_INCLUSION is disabledDeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES is disabledNote that Jackson's JSR-310 and Joda-Time support modules will be registered automatically when available (and when Java 8 and Joda-Time themselves are available, respectively).
| Constructor and Description | 
|---|
Jackson2SockJsMessageCodec()  | 
Jackson2SockJsMessageCodec(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 Jackson2SockJsMessageCodec()
public Jackson2SockJsMessageCodec(ObjectMapper objectMapper)
public String[] decode(String content) throws IOException
SockJsMessageCodeccontent - the SockJS message framenull if noneIOException - if the content could not be parsedpublic String[] decodeInputStream(InputStream content) throws IOException
SockJsMessageCodeccontent - the SockJS message framenull if noneIOException - if the content could not be parsedprotected char[] applyJsonQuoting(String content)
AbstractSockJsMessageCodecapplyJsonQuoting in class AbstractSockJsMessageCodec