Package org.glassfish.tyrus.spi
Class TyrusClientEndpointConfigurator
java.lang.Object
jakarta.websocket.ClientEndpointConfig.Configurator
org.glassfish.tyrus.spi.TyrusClientEndpointConfigurator
Extended Configurator that can be used for subclassing the user provided configurator.
If done so, the additional methods are invoked as described by the methods.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
beforeRequest
(UpgradeRequest upgradeRequest) This method is called by the implementation after it has formulated the handshake request that will be used to initiate the connection to the server, but beforeClientEndpointConfig.Configurator.beforeRequest(Map)
is invoked.Methods inherited from class jakarta.websocket.ClientEndpointConfig.Configurator
afterResponse, beforeRequest
-
Constructor Details
-
TyrusClientEndpointConfigurator
public TyrusClientEndpointConfigurator()
-
-
Method Details
-
beforeRequest
This method is called by the implementation after it has formulated the handshake request that will be used to initiate the connection to the server, but beforeClientEndpointConfig.Configurator.beforeRequest(Map)
is invoked. This allows the developer to inspect the handshake request itself prior to the start of the handshake interaction.For modifying the HandshakeRequestHeaders, use
ClientEndpointConfig.Configurator.beforeRequest(Map)
.- Parameters:
upgradeRequest
- the read-only handshake request the implementation is about to send to start the handshake interaction.
-