Annotation Interface WebSocketClient.Endpoint
- Enclosing class:
WebSocketClient
WebSocket.
The class should also have a Http.Path annotation to specify the path on the server.
In case key client node exists under the configuration node of this API, a new client will be created for this
instance (this always wins).
In case the clientName() is defined, and an instance of that name is available in registry, it will be used
for this instance.
Then we use an unnamed client instance from the registry (if any).
The last resort is to create a new client that would be used for this API.
Important: for each endpoint a class is generated that is named as ClassNameFactory.
If such a class already exists, there will be a name conflict, use factoryClassName() to specify a custom
class name in such a case. The factory will always be in the same package as the annotated type.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionName of a named instance ofWsClientwe attempt to get from registry.Configuration key base to use when looking up options for the generated client.Class name of the generated factory, default toClassNameOfAnnotatedTypeFactory, i.e.
-
Element Details
-
value
String valueThe base URI of this API.Note that
Http.Pathannotation on the API is added to this value.Note that if the provided client (either from service registry, or provided to the factory) has a base URI specified, this value will be ignored, and only the configured path will be used.
- Returns:
- endpoint URI of the generated client
-
configKey
String configKeyConfiguration key base to use when looking up options for the generated client.- Returns:
- configuration key prefix
- Default:
""
-
clientName
String clientNameName of a named instance ofWsClientwe attempt to get from registry.- Returns:
- client name
- Default:
""
-
factoryClassName
String factoryClassNameClass name of the generated factory, default toClassNameOfAnnotatedTypeFactory, i.e. for a type namedEchoClientEndpoint, we would generate an `EchoClientEndpointFactory.- Returns:
- custom class name for the generated endpoint factory
- Default:
""
-