public class HandshakeInfo extends Object
WebSocketSession session.WebSocketSession.getHandshakeInfo()| Constructor and Description |
|---|
HandshakeInfo(URI uri,
HttpHeaders headers,
reactor.core.publisher.Mono<Principal> principal,
String protocol)
Constructor with information about the handshake.
|
| Modifier and Type | Method and Description |
|---|---|
HttpHeaders |
getHeaders()
Return the handshake HTTP headers.
|
reactor.core.publisher.Mono<Principal> |
getPrincipal()
Return the principal associated with the handshake HTTP request.
|
String |
getSubProtocol()
The sub-protocol negotiated at handshake time, or
null if none. |
URI |
getUri()
Return the URL for the WebSocket endpoint.
|
String |
toString() |
public HandshakeInfo(URI uri, HttpHeaders headers, reactor.core.publisher.Mono<Principal> principal, @Nullable String protocol)
uri - the endpoint URLheaders - request headers for server or response headers or clientprincipal - the principal for the sessionprotocol - the negotiated sub-protocol (may be null)public URI getUri()
public HttpHeaders getHeaders()
public reactor.core.publisher.Mono<Principal> getPrincipal()
@Nullable public String getSubProtocol()
null if none.