程序包 org.springframework.web.socket.sockjs.transport.handler
TransportHandler
implementation classes as well as a concrete SockJsService
.类概要 类 说明 AbstractHttpReceivingTransportHandler Base class for HTTP transport handlers that receive messages via HTTP POST.AbstractHttpSendingTransportHandler Base class for HTTP transport handlers that push messages to connected clients.AbstractTransportHandler Common base class forTransportHandler
implementations.DefaultSockJsService A default implementation ofSockJsService
with all defaultTransportHandler
implementations pre-registered.EventSourceTransportHandler A TransportHandler for sending messages via Server-Sent Events: https://dev.w3.org/html5/eventsource/.HtmlFileTransportHandler An HTTPTransportHandler
that uses a famous browserdocument.domain technique
.JsonpPollingTransportHandler 已过时。 Will be removed as of Spring Framework 5.1, use others transports instead.JsonpReceivingTransportHandler 已过时。 Will be removed as of Spring Framework 5.1, use others transports instead.SockJsWebSocketHandler An implementation ofWebSocketHandler
that adds SockJS messages frames, sends SockJS heartbeat messages, and delegates lifecycle events and messages to a targetWebSocketHandler
.WebSocketTransportHandler WebSocket-basedTransportHandler
.XhrPollingTransportHandler ATransportHandler
based on XHR (long) polling.XhrReceivingTransportHandler ATransportHandler
that receives messages over HTTP.XhrStreamingTransportHandler ATransportHandler
that sends messages over an HTTP streaming request.