类的使用
org.springframework.web.socket.sockjs.SockJsException
使用SockJsException的程序包 程序包 说明 org.springframework.web.socket.sockjs Top-level SockJS types.org.springframework.web.socket.sockjs.support Support classes for SockJS including anAbstractSockJsService
implementation.org.springframework.web.socket.sockjs.transport Server-side support for SockJS transports includingTransportHandler
implementations for processing incoming requests, theirsession
counterparts for sending messages over the various transports, andDefaultSockJsService
.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中SockJsException的使用
org.springframework.web.socket.sockjs中SockJsException的子类 修饰符和类型 类 说明 class
SockJsMessageDeliveryException
An exception thrown when a message frame was successfully received over an HTTP POST and parsed but one or more of the messages it contained could not be delivered to the WebSocketHandler either because the handler failed or because the connection got closed.class
SockJsTransportFailureException
Indicates a serious failure that occurred in the SockJS implementation as opposed to in user code (e.g.抛出SockJsException的org.springframework.web.socket.sockjs中的方法 修饰符和类型 方法 说明 void
SockJsService. handleRequest(ServerHttpRequest request, ServerHttpResponse response, String sockJsPath, WebSocketHandler handler)
Process a SockJS HTTP request.org.springframework.web.socket.sockjs.support中SockJsException的使用
抛出SockJsException的org.springframework.web.socket.sockjs.support中的方法 修饰符和类型 方法 说明 void
AbstractSockJsService. handleRequest(ServerHttpRequest request, ServerHttpResponse response, String sockJsPath, WebSocketHandler wsHandler)
This method determines the SockJS path and handles SockJS static URLs.protected abstract void
AbstractSockJsService. handleTransportRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler webSocketHandler, String sessionId, String transport)
Handle a SockJS session URL (i.e. transport-specific request).org.springframework.web.socket.sockjs.transport中SockJsException的使用
抛出SockJsException的org.springframework.web.socket.sockjs.transport中的方法 修饰符和类型 方法 说明 void
TransportHandler. handleRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler handler, SockJsSession session)
Handle the given request and delegate messages to the providedWebSocketHandler
.protected void
TransportHandlingSockJsService. handleTransportRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler handler, String sessionId, String transport)
org.springframework.web.socket.sockjs.transport.handler中SockJsException的使用
org.springframework.web.socket.sockjs.transport.session中SockJsException的使用
抛出SockJsException的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.