public class HandshakeInfo extends ObjectSE
WebSocketSession セッションを開始したハンドシェイクリクエストに関連する情報の単純なコンテナー。WebSocketSession.getHandshakeInfo()| コンストラクターと説明 |
|---|
HandshakeInfo(URISE uri, HttpHeaders headers, reactor.core.publisher.Mono<PrincipalSE> principal, StringSE protocol) ハンドシェイクに関する基本情報を持つコンストラクター。 |
HandshakeInfo(URISE uri, HttpHeaders headers, reactor.core.publisher.Mono<PrincipalSE> principal, StringSE protocol, InetSocketAddressSE remoteAddress, MapSE<StringSE, ObjectSE> attributes, StringSE logPrefix) 使用すべきではありません。 |
HandshakeInfo(URISE uri, HttpHeaders headers, MultiValueMap<StringSE, HttpCookie> cookies, reactor.core.publisher.Mono<PrincipalSE> principal, StringSE protocol, InetSocketAddressSE remoteAddress, MapSE<StringSE, ObjectSE> attributes, StringSE logPrefix)Cookie、リモートアドレス、属性、ログプレフィックスなどの追加情報を使用してサーバー側で使用することを目的としたコンストラクター。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
MapSE<StringSE, ObjectSE> | getAttributes() セッションに追加するためにハンドシェイクリクエストから抽出された属性。 |
MultiValueMap<StringSE, HttpCookie> | getCookies() サーバーセッションの場合、これはハンドシェイクリクエストからサーバーリクエスト Cookie を返します。 |
HttpHeaders | getHeaders() ハンドシェイクリクエストから HTTP ヘッダーを返します。これは、サーバーセッションのサーバーリクエストヘッダーまたはクライアントセッションのクライアントレスポンスヘッダーのいずれかです。 |
StringSE | getLogPrefix() ログメッセージを関連付けるためにハンドシェイクで使用されるログプレフィックス(ある場合)。 |
reactor.core.publisher.Mono<PrincipalSE> | getPrincipal() ハンドシェイクリクエストに関連付けられているプリンシパルがある場合は、それを返します。 |
InetSocketAddressSE | getRemoteAddress() サーバーセッションの場合、これはハンドシェイクリクエストの送信元のリモートアドレスです。 |
StringSE | getSubProtocol() ハンドシェイク時にネゴシエートされたサブプロトコル。ない場合は null。 |
URISE | getUri()WebSocket エンドポイントの URL を返します。 |
StringSE | toString() |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSEpublic HandshakeInfo(URISE uri, HttpHeaders headers, reactor.core.publisher.Mono<PrincipalSE> principal, @Nullable StringSE protocol)
uri - エンドポイント URLheaders - サーバーまたはレスポンスヘッダーまたはクライアントのリクエストヘッダー principal - セッションのプリンシパル protocol - 交渉されたサブプロトコル (null の場合があります)@DeprecatedSE public HandshakeInfo(URISE uri, HttpHeaders headers, reactor.core.publisher.Mono<PrincipalSE> principal, @Nullable StringSE protocol, @Nullable InetSocketAddressSE remoteAddress, MapSE<StringSE,ObjectSE> attributes, @Nullable StringSE logPrefix)
HandshakeInfo(URI, HttpHeaders, MultiValueMap, Mono, String, InetSocketAddress, Map, String) に変更 uri - エンドポイント URLheaders - サーバーリクエストヘッダー principal - セッションのプリンシパル protocol - 交渉されたサブプロトコル (null の場合があります)remoteAddress - クライアントのリモートアドレス attributes - WebSocket セッションの初期属性 logPrefix - ハンドシェイクリクエストのログプレフィックス。public HandshakeInfo(URISE uri, HttpHeaders headers, MultiValueMap<StringSE,HttpCookie> cookies, reactor.core.publisher.Mono<PrincipalSE> principal, @Nullable StringSE protocol, @Nullable InetSocketAddressSE remoteAddress, MapSE<StringSE,ObjectSE> attributes, @Nullable StringSE logPrefix)
uri - エンドポイント URLheaders - サーバーリクエストヘッダー cookies - サーバーリクエスト Cookieprincipal - セッションのプリンシパル protocol - 交渉されたサブプロトコル (null の場合があります)remoteAddress - クライアントのリモートアドレス attributes - WebSocket セッションの初期属性 logPrefix - ハンドシェイクリクエストのログプレフィックス。public URISE getUri()
public HttpHeaders getHeaders()
public MultiValueMap<StringSE,HttpCookie> getCookies()
public reactor.core.publisher.Mono<PrincipalSE> getPrincipal()
@Nullable public InetSocketAddressSE getRemoteAddress()
null です。public MapSE<StringSE,ObjectSE> getAttributes()
@Nullable public StringSE getLogPrefix()
null public StringSE toString()
ObjectSE の toStringSE