Package org.glassfish.sse.api
Annotation Type ServerSentEvent
-
@Target(TYPE) @Retention(RUNTIME) public @interface ServerSentEvent
ServerSentEventindicates a server component that pushes notifications to clients via a HTTP connection. Browser applications typically use EventSource API to connect to this source of server-sent events.Server component class needs to have
ServerSentEventannotation and provides the implementation ofServerSentEventHandler. For example:@ServerSentEvent("/foo") public class FooHandler extends ServerSentEventHandler { ... }- Author:
- Jitendra Kotamraju, Santiago.PericasGeertsen@oracle.com
-
-
Element Detail
-
value
String value
The URL pattern of the source of server-sent events
-
-