Top Fields Constructors Methods
org.eclipse.jetty.ee10.websocket.jakarta.client.internal

public Class EmptyConfigurator

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

Field Summary

Modifier and TypeField and Description
public static final EmptyConfigurator

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
afterResponse(HandshakeResponse
the handshake response sent by the server.
hr
)

Overrides jakarta.websocket.ClientEndpointConfig.Configurator.afterResponse.

This method is called by the implementation after it has received a handshake response from the server as a result of a handshake interaction it initiated.

public void
beforeRequest(Map<String, List<String>>
the mutable map of handshake request headers the implementation is about to send to start the handshake interaction.
headers
)

Overrides jakarta.websocket.ClientEndpointConfig.Configurator.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 before it has sent any part of the request.

Field Detail

INSTANCEback to summary
public static final EmptyConfigurator INSTANCE

Constructor Detail

EmptyConfiguratorback to summary
public EmptyConfigurator()

Method Detail

afterResponseback to summary
public void afterResponse(HandshakeResponse hr)

Overrides jakarta.websocket.ClientEndpointConfig.Configurator.afterResponse.

Doc from jakarta.websocket.ClientEndpointConfig.Configurator.afterResponse.

This method is called by the implementation after it has received a handshake response from the server as a result of a handshake interaction it initiated. The developer may implement this method in order to inspect the returning handshake response.

Parameters
hr:HandshakeResponse

the handshake response sent by the server.

Annotations
@Override
beforeRequestback to summary
public void beforeRequest(Map<String, List<String>> headers)

Overrides jakarta.websocket.ClientEndpointConfig.Configurator.beforeRequest.

Doc from jakarta.websocket.ClientEndpointConfig.Configurator.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 before it has sent any part of the request. This allows the developer to inspect and modify the handshake request headers prior to the start of the handshake interaction.

Parameters
headers:Map<String, List<String>>

the mutable map of handshake request headers the implementation is about to send to start the handshake interaction.

Annotations
@Override