Top Description Constructors Methods
org.glassfish.tyrus.spi

public Class TyrusClientEndpointConfigurator

extends Configurator
Class Inheritance
Imports
jakarta.websocket.ClientEndpointConfig, java.util.Map

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

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
beforeRequest(UpgradeRequest
the read-only handshake request the implementation is about to send to start the handshake interaction.
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 before beforeRequest(Map) is invoked.

Inherited from jakarta.websocket.ClientEndpointConfig.Configurator:
afterResponsebeforeRequest

Constructor Detail

TyrusClientEndpointConfiguratorback to summary
public TyrusClientEndpointConfigurator()

Method Detail

beforeRequestback to summary
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 before 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 beforeRequest(Map).

Parameters
upgradeRequest:UpgradeRequest

the read-only handshake request the implementation is about to send to start the handshake interaction.