com.vaadin.flow.server.connect.
Annotation Type Endpoint
-
@Target(value=TYPE) @Retention(value=RUNTIME) public @interface Endpoint
Annotation to mark the endpoints to be processed by
VaadinConnectController
class. Each class annotated automatically becomes a SpringComponent
bean. After the class is annotated and processed, it becomes available as a Vaadin endpoint. This means that the class name and all its public methods can be executed via the post call with the correct parameters sent in a request JSON body. The methods' return values will be returned back as a response to the calls. Refer toVaadinConnectController
for more details.See Also:
VaadinConnectController
,Component
-
-
Element Detail
-
value
public abstract String value
The name of an endpoint to use. If nothing is specified, the name of the annotated class is taken.
Note: custom names are not allowed to be blank, be equal to any of the ECMAScript reserved words or have whitespaces in them. See
EndpointNameChecker
for validation implementation details.Returns:
the name of the endpoint to use in post requests
Default:
""
-
-