Package io.undertow.servlet.sse
Annotation Type ServerSentEvent
-
@Retention(RUNTIME) @Target(TYPE) public @interface ServerSentEvent
Annotation that can be applied to classes that implementServerSentEventConnectionCallback
These classes will then have handlers registered under the given path. This path is a path template, any path parameter values can be retrieved fromServerSentEventConnection.getParameter(String)
Only a single instance of the callback will be created at deployment time.- Author:
- Stuart Douglas
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String
value
The path to register this SSE handler.
-