接口的使用
org.springframework.web.socket.messaging.SubProtocolHandler
使用SubProtocolHandler的程序包 程序包 说明 org.springframework.web.socket.messaging WebSocket integration for Spring's messaging module.org.springframework.web.socket.messaging中SubProtocolHandler的使用
实现SubProtocolHandler的org.springframework.web.socket.messaging中的类 修饰符和类型 类 说明 class
StompSubProtocolHandler
ASubProtocolHandler
for STOMP that supports versions 1.0, 1.1, and 1.2 of the STOMP specification.返回SubProtocolHandler的org.springframework.web.socket.messaging中的方法 修饰符和类型 方法 说明 protected SubProtocolHandler
SubProtocolWebSocketHandler. findProtocolHandler(WebSocketSession session)
Find aSubProtocolHandler
for the given session.SubProtocolHandler
SubProtocolWebSocketHandler. getDefaultProtocolHandler()
Return the default sub-protocol handler to use.返回变量类型为SubProtocolHandler的类型的org.springframework.web.socket.messaging中的方法 修饰符和类型 方法 说明 Map<String,SubProtocolHandler>
SubProtocolWebSocketHandler. getProtocolHandlerMap()
Return the sub-protocols keyed by protocol name.List<SubProtocolHandler>
SubProtocolWebSocketHandler. getProtocolHandlers()
参数类型为SubProtocolHandler的org.springframework.web.socket.messaging中的方法 修饰符和类型 方法 说明 void
SubProtocolWebSocketHandler. addProtocolHandler(SubProtocolHandler handler)
Register a sub-protocol handler.void
SubProtocolWebSocketHandler. setDefaultProtocolHandler(SubProtocolHandler defaultProtocolHandler)
Set theSubProtocolHandler
to use when the client did not request a sub-protocol.类型变量类型为SubProtocolHandler的org.springframework.web.socket.messaging中的方法参数 修饰符和类型 方法 说明 void
SubProtocolWebSocketHandler. setProtocolHandlers(List<SubProtocolHandler> protocolHandlers)
Configure one or more handlers to use depending on the sub-protocol requested by the client in the WebSocket handshake request.