public class SseFeature extends Object implements javax.ws.rs.core.Feature
feature that enables Server-Sent Events support.| Modifier and Type | Field and Description |
|---|---|
static String |
LAST_EVENT_ID_HEADER
"Last-Event-ID" HTTP request header name as defined by
SSE specification. |
static long |
RECONNECT_NOT_SET
A "reconnection not set" value for the SSE reconnect delay set via
retry field. |
static String |
SERVER_SENT_EVENTS
String representation of Server sent events media type. |
static javax.ws.rs.core.MediaType |
SERVER_SENT_EVENTS_TYPE
Server sent events media type.
|
| Constructor and Description |
|---|
SseFeature() |
public static final String SERVER_SENT_EVENTS
String representation of Server sent events media type. (""text/event-stream"").public static final javax.ws.rs.core.MediaType SERVER_SENT_EVENTS_TYPE
public static long RECONNECT_NOT_SET
retry field.public static final String LAST_EVENT_ID_HEADER
"Last-Event-ID" HTTP request header name as defined by
SSE specification.Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.