类的使用
org.springframework.web.reactive.socket.HandshakeInfo
使用HandshakeInfo的程序包 程序包 说明 org.springframework.web.reactive.socket Abstractions and support classes for reactive WebSocket interactions.org.springframework.web.reactive.socket.adapter Classes adapting Spring's Reactive WebSocket API to and from WebSocket runtimes.org.springframework.web.reactive.socket.client Client support for WebSocket interactions.org.springframework.web.reactive.socket.server Server support for WebSocket interactions.org.springframework.web.reactive.socket.server.upgrade Holds implementations ofRequestUpgradeStrategy.org.springframework.web.reactive.socket中HandshakeInfo的使用
返回HandshakeInfo的org.springframework.web.reactive.socket中的方法 修饰符和类型 方法 说明 HandshakeInfoWebSocketSession. getHandshakeInfo()Return information from the handshake request.org.springframework.web.reactive.socket.adapter中HandshakeInfo的使用
返回HandshakeInfo的org.springframework.web.reactive.socket.adapter中的方法 修饰符和类型 方法 说明 HandshakeInfoAbstractWebSocketSession. getHandshakeInfo()参数类型为HandshakeInfo的org.springframework.web.reactive.socket.adapter中的构造器 构造器 说明 AbstractListenerWebSocketSession(T delegate, String id, HandshakeInfo handshakeInfo, DataBufferFactory bufferFactory)Base constructor.AbstractListenerWebSocketSession(T delegate, String id, HandshakeInfo info, DataBufferFactory bufferFactory, reactor.core.publisher.MonoProcessor<Void> completionMono)Alternative constructor with completionMono<Void>to propagate the session completion (success or error) (for client-side use).AbstractWebSocketSession(T delegate, String id, HandshakeInfo info, DataBufferFactory bufferFactory)Create a new WebSocket session.JettyWebSocketSession(org.eclipse.jetty.websocket.api.Session session, HandshakeInfo info, DataBufferFactory factory)JettyWebSocketSession(org.eclipse.jetty.websocket.api.Session session, HandshakeInfo info, DataBufferFactory factory, reactor.core.publisher.MonoProcessor<Void> completionMono)NettyWebSocketSessionSupport(T delegate, HandshakeInfo info, NettyDataBufferFactory factory)ReactorNettyWebSocketSession(reactor.netty.http.websocket.WebsocketInbound inbound, reactor.netty.http.websocket.WebsocketOutbound outbound, HandshakeInfo info, NettyDataBufferFactory bufferFactory)Constructor for the session, using theNettyWebSocketSessionSupport.DEFAULT_FRAME_MAX_SIZEvalue.ReactorNettyWebSocketSession(reactor.netty.http.websocket.WebsocketInbound inbound, reactor.netty.http.websocket.WebsocketOutbound outbound, HandshakeInfo info, NettyDataBufferFactory bufferFactory, int maxFramePayloadLength)Constructor with an additional maxFramePayloadLength argument.StandardWebSocketSession(Session session, HandshakeInfo info, DataBufferFactory factory)StandardWebSocketSession(Session session, HandshakeInfo info, DataBufferFactory factory, reactor.core.publisher.MonoProcessor<Void> completionMono)TomcatWebSocketSession(Session session, HandshakeInfo info, DataBufferFactory factory)TomcatWebSocketSession(Session session, HandshakeInfo info, DataBufferFactory factory, reactor.core.publisher.MonoProcessor<Void> completionMono)UndertowWebSocketSession(io.undertow.websockets.core.WebSocketChannel channel, HandshakeInfo info, DataBufferFactory factory)UndertowWebSocketSession(io.undertow.websockets.core.WebSocketChannel channel, HandshakeInfo info, DataBufferFactory factory, reactor.core.publisher.MonoProcessor<Void> completionMono)org.springframework.web.reactive.socket.client中HandshakeInfo的使用
参数类型为HandshakeInfo的org.springframework.web.reactive.socket.client中的方法 修饰符和类型 方法 说明 protected StandardWebSocketSessionStandardWebSocketClient. createWebSocketSession(Session session, HandshakeInfo info, reactor.core.publisher.MonoProcessor<Void> completion)protected StandardWebSocketSessionTomcatWebSocketClient. createWebSocketSession(Session session, HandshakeInfo info, reactor.core.publisher.MonoProcessor<Void> completion)org.springframework.web.reactive.socket.server中HandshakeInfo的使用
类型变量类型为HandshakeInfo的org.springframework.web.reactive.socket.server中的方法参数 修饰符和类型 方法 说明 default reactor.core.publisher.Mono<Void>RequestUpgradeStrategy. upgrade(ServerWebExchange exchange, WebSocketHandler webSocketHandler, String subProtocol, Supplier<HandshakeInfo> handshakeInfoFactory)Upgrade to a WebSocket session and handle it with the given handler.org.springframework.web.reactive.socket.server.upgrade中HandshakeInfo的使用
类型变量类型为HandshakeInfo的org.springframework.web.reactive.socket.server.upgrade中的方法参数 修饰符和类型 方法 说明 reactor.core.publisher.Mono<Void>JettyRequestUpgradeStrategy. upgrade(ServerWebExchange exchange, WebSocketHandler handler, String subProtocol, Supplier<HandshakeInfo> handshakeInfoFactory)reactor.core.publisher.Mono<Void>ReactorNettyRequestUpgradeStrategy. upgrade(ServerWebExchange exchange, WebSocketHandler handler, String subProtocol, Supplier<HandshakeInfo> handshakeInfoFactory)reactor.core.publisher.Mono<Void>TomcatRequestUpgradeStrategy. upgrade(ServerWebExchange exchange, WebSocketHandler handler, String subProtocol, Supplier<HandshakeInfo> handshakeInfoFactory)reactor.core.publisher.Mono<Void>UndertowRequestUpgradeStrategy. upgrade(ServerWebExchange exchange, WebSocketHandler handler, String subProtocol, Supplier<HandshakeInfo> handshakeInfoFactory)