Annotation Type ClientEndpoint
Annotates a class as a WebSocket client endpoint. The annotation provides configuration
information about the endpoint such as subprotocols, encoders, decoders, and configurator.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<? extends ClientEndpointConfig.Configurator> The configurator class used to customize the WebSocket handshake.The decoder classes that this client endpoint uses.The encoder classes that this client endpoint uses.String[]The sub-protocols that this client endpoint supports, in order of preference.
-
Element Details
-
subprotocols
String[] subprotocolsThe sub-protocols that this client endpoint supports, in order of preference.- Returns:
- The list of preferred sub-protocols
- Default:
{}
-
decoders
-
encoders
-
configurator
Class<? extends ClientEndpointConfig.Configurator> configuratorThe configurator class used to customize the WebSocket handshake.- Returns:
- The configurator class
- Default:
jakarta.websocket.ClientEndpointConfig.Configurator.class
-