Class Jackson2SockJsMessageCodec

java.lang.Object
org.springframework.web.socket.sockjs.frame.AbstractSockJsMessageCodec
org.springframework.web.socket.sockjs.frame.Jackson2SockJsMessageCodec
All Implemented Interfaces:
SockJsMessageCodec

public class Jackson2SockJsMessageCodec extends AbstractSockJsMessageCodec
A Jackson 2.6+ codec for encoding and decoding SockJS messages.

It customizes Jackson's default properties with the following ones:

Note 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).

Since:
4.0
Author:
Rossen Stoyanchev
  • Constructor Details

    • Jackson2SockJsMessageCodec

      public Jackson2SockJsMessageCodec()
    • Jackson2SockJsMessageCodec

      public Jackson2SockJsMessageCodec(ObjectMapper objectMapper)
  • Method Details