接口的使用
org.springframework.web.socket.sockjs.frame.SockJsMessageCodec
使用SockJsMessageCodec的程序包 程序包 说明 org.springframework.web.socket.config.annotation Support for annotation-based WebSocket setup in configuration classes.org.springframework.web.socket.sockjs.client SockJS client implementation ofWebSocketClient.org.springframework.web.socket.sockjs.frame Support classes for creating SockJS frames including the encoding and decoding of SockJS message frames.org.springframework.web.socket.sockjs.transport Server-side support for SockJS transports includingTransportHandlerimplementations for processing incoming requests, theirsessioncounterparts for sending messages over the various transports, andDefaultSockJsService.org.springframework.web.socket.sockjs.transport.session SockJS specific implementations ofWebSocketSession.org.springframework.web.socket.config.annotation中SockJsMessageCodec的使用
参数类型为SockJsMessageCodec的org.springframework.web.socket.config.annotation中的方法 修饰符和类型 方法 说明 SockJsServiceRegistrationSockJsServiceRegistration. setMessageCodec(SockJsMessageCodec codec)The codec to use for encoding and decoding SockJS messages.org.springframework.web.socket.sockjs.client中SockJsMessageCodec的使用
返回SockJsMessageCodec的org.springframework.web.socket.sockjs.client中的方法 修饰符和类型 方法 说明 SockJsMessageCodecAbstractClientSockJsSession. getMessageCodec()SockJsMessageCodecSockJsClient. getMessageCodec()Return the SockJsMessageCodec to use.SockJsMessageCodecTransportRequest. getMessageCodec()Return the message codec to use for encoding SockJS messages.参数类型为SockJsMessageCodec的org.springframework.web.socket.sockjs.client中的方法 修饰符和类型 方法 说明 voidSockJsClient. setMessageCodec(SockJsMessageCodec messageCodec)Set the SockJsMessageCodec to use.org.springframework.web.socket.sockjs.frame中SockJsMessageCodec的使用
实现SockJsMessageCodec的org.springframework.web.socket.sockjs.frame中的类 修饰符和类型 类 说明 classAbstractSockJsMessageCodecAn base class for SockJS message codec that provides an implementation ofAbstractSockJsMessageCodec.encode(String[]).classJackson2SockJsMessageCodecA Jackson 2.6+ codec for encoding and decoding SockJS messages.参数类型为SockJsMessageCodec的org.springframework.web.socket.sockjs.frame中的方法 修饰符和类型 方法 说明 static SockJsFrameSockJsFrame. messageFrame(SockJsMessageCodec codec, String... messages)org.springframework.web.socket.sockjs.transport中SockJsMessageCodec的使用
返回SockJsMessageCodec的org.springframework.web.socket.sockjs.transport中的方法 修饰符和类型 方法 说明 SockJsMessageCodecSockJsServiceConfig. getMessageCodec()The codec to use for encoding and decoding SockJS messages.SockJsMessageCodecTransportHandlingSockJsService. getMessageCodec()参数类型为SockJsMessageCodec的org.springframework.web.socket.sockjs.transport中的方法 修饰符和类型 方法 说明 voidTransportHandlingSockJsService. setMessageCodec(SockJsMessageCodec messageCodec)The codec to use for encoding and decoding SockJS messages.org.springframework.web.socket.sockjs.transport.session中SockJsMessageCodec的使用
返回SockJsMessageCodec的org.springframework.web.socket.sockjs.transport.session中的方法 修饰符和类型 方法 说明 protected SockJsMessageCodecAbstractSockJsSession. getMessageCodec()