接口的使用
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中的类 修饰符和类型 类 说明 classStompSubProtocolHandlerASubProtocolHandlerfor STOMP that supports versions 1.0, 1.1, and 1.2 of the STOMP specification.返回SubProtocolHandler的org.springframework.web.socket.messaging中的方法 修饰符和类型 方法 说明 protected SubProtocolHandlerSubProtocolWebSocketHandler. findProtocolHandler(WebSocketSession session)Find aSubProtocolHandlerfor the given session.SubProtocolHandlerSubProtocolWebSocketHandler. 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中的方法 修饰符和类型 方法 说明 voidSubProtocolWebSocketHandler. addProtocolHandler(SubProtocolHandler handler)Register a sub-protocol handler.voidSubProtocolWebSocketHandler. setDefaultProtocolHandler(SubProtocolHandler defaultProtocolHandler)Set theSubProtocolHandlerto use when the client did not request a sub-protocol.类型变量类型为SubProtocolHandler的org.springframework.web.socket.messaging中的方法参数 修饰符和类型 方法 说明 voidSubProtocolWebSocketHandler. 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.