- java.lang.Object
-
- javax.websocket.ClientEndpointConfig.Configurator
-
- Enclosing interface:
- ClientEndpointConfig
public static class ClientEndpointConfig.Configurator extends Object
The Configurator class may be extended by developers who want to provide custom configuration algorithms, such as intercepting the opening handshake, or providing arbitrary methods and algorithms that can be accessed from each endpoint instance configured with this configurator.
-
-
Constructor Summary
Constructors Constructor and Description Configurator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
afterResponse(HandshakeResponse hr)
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.void
beforeRequest(Map<String,List<String>> headers)
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.
-
-
-
Method Detail
-
beforeRequest
public void beforeRequest(Map<String,List<String>> headers)
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
- the mutable map of handshake request headers the implementation is about to send to start the handshake interaction.
-
afterResponse
public void afterResponse(HandshakeResponse hr)
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
- the handshake response sent by the server.
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
21/08/2025 17:19:49 Cette version de la page est en cache (à la date du 21/08/2025 17:19:49) afin d'accélérer le traitement.Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la version plus récente de la page.
Document créé le 11/06/2005, dernière modification le 18/08/2025
Source du document imprimé : https://www.gaudry.be/java-api-javaee-rf-javax/websocket/ClientEndpointConfig.Configurator.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.