Interface ReadablePlayerCookieConnection
- All Superinterfaces:
PlayerConnection
- All Known Subinterfaces:
PlayerCommonConnection, PlayerConfigurationConnection, PlayerGameConnection, PlayerLoginConnection
-
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<byte[]> Retrieves a cookie from this connection.Methods inherited from interface PlayerConnection
disconnect, getAddress, getClientAddress, getHAProxyAddress, getVirtualHost, isConnected, isTransferred
-
Method Details
-
retrieveCookie
Retrieves a cookie from this connection.- Parameters:
key- the key identifying the cookie- Returns:
- a
CompletableFuturethat will be completed when the Cookie response is received or otherwise available. If the cookie is not set in the client, theCompletableFuturewill complete with a null value.
-