org.springframework.web.socket.sockjs.frame

## Class DefaultSockJsFrameFormat

- java.lang.Object
- - org.springframework.web.socket.sockjs.frame.DefaultSockJsFrameFormat

- All Implemented Interfaces:
    SockJsFrameFormat

      public class DefaultSockJsFrameFormat
      extends Object
      implements SockJsFrameFormat

  Since:
    4.0
  Author:
    Rossen Stoyanchev

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultSockJsFrameFormat(String format)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `SockJsFrame` | `format(SockJsFrame frame)`
    `protected String` | `preProcessContent(String content)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultSockJsFrameFormat

          public DefaultSockJsFrameFormat(String format)

  - ### Method Detail

    - #### format

          public SockJsFrame format(SockJsFrame frame)

      Specified by:
        `format` in interface `SockJsFrameFormat`
      Parameters:
        `frame` - the SockJs frame.
      Returns:
        new SockJsFrame instance with the formatted content

    - #### preProcessContent

          protected String preProcessContent(String content)