接口的使用
org.springframework.web.socket.sockjs.frame.SockJsFrameFormat
使用SockJsFrameFormat的程序包 程序包 说明 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.handler TransportHandler
implementation classes as well as a concreteSockJsService
.org.springframework.web.socket.sockjs.transport.session SockJS specific implementations ofWebSocketSession
.org.springframework.web.socket.sockjs.frame中SockJsFrameFormat的使用
实现SockJsFrameFormat的org.springframework.web.socket.sockjs.frame中的类 修饰符和类型 类 说明 class
DefaultSockJsFrameFormat
A default implementation ofSockJsFrameFormat
that relies onString.format(String, Object...)
..org.springframework.web.socket.sockjs.transport.handler中SockJsFrameFormat的使用
返回SockJsFrameFormat的org.springframework.web.socket.sockjs.transport.handler中的方法 修饰符和类型 方法 说明 protected abstract SockJsFrameFormat
AbstractHttpSendingTransportHandler. getFrameFormat(ServerHttpRequest request)
protected SockJsFrameFormat
EventSourceTransportHandler. getFrameFormat(ServerHttpRequest request)
protected SockJsFrameFormat
HtmlFileTransportHandler. getFrameFormat(ServerHttpRequest request)
protected SockJsFrameFormat
XhrPollingTransportHandler. getFrameFormat(ServerHttpRequest request)
protected SockJsFrameFormat
XhrStreamingTransportHandler. getFrameFormat(ServerHttpRequest request)
org.springframework.web.socket.sockjs.transport.session中SockJsFrameFormat的使用
参数类型为SockJsFrameFormat的org.springframework.web.socket.sockjs.transport.session中的方法 修饰符和类型 方法 说明 void
AbstractHttpSockJsSession. handleInitialRequest(ServerHttpRequest request, ServerHttpResponse response, SockJsFrameFormat frameFormat)
Handle the first request for receiving messages on a SockJS HTTP transport based session.void
AbstractHttpSockJsSession. handleSuccessiveRequest(ServerHttpRequest request, ServerHttpResponse response, SockJsFrameFormat frameFormat)
Handle all requests, except the first one, to receive messages on a SockJS HTTP transport based session.