Package org.glassfish.tyrus.spi
Class TyrusClientEndpointConfigurator
- java.lang.Object
-
- jakarta.websocket.ClientEndpointConfig.Configurator
-
- org.glassfish.tyrus.spi.TyrusClientEndpointConfigurator
-
public class TyrusClientEndpointConfigurator extends ClientEndpointConfig.Configurator
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
Constructors Constructor Description TyrusClientEndpointConfigurator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
-
-
-
-
Method Detail
-
beforeRequest
public void 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. 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.
-
-