org.glassfish.jersey.media.sse
Class SseFeature
java.lang.Object
org.glassfish.jersey.media.sse.SseFeature
- All Implemented Interfaces:
- javax.ws.rs.core.Feature
public class SseFeature
- extends Object
- implements javax.ws.rs.core.Feature
A JAX-RS feature that enables Server-Sent Events support.
- Author:
- Marek Potociar (marek.potociar at oracle.com)
|
Method Summary |
boolean |
configure(javax.ws.rs.core.FeatureContext context)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVER_SENT_EVENTS
public static final String SERVER_SENT_EVENTS
String representation of Server sent events media type. (""text/event-stream"").
- See Also:
- Constant Field Values
SERVER_SENT_EVENTS_TYPE
public static final javax.ws.rs.core.MediaType SERVER_SENT_EVENTS_TYPE
- Server sent events media type.
RECONNECT_NOT_SET
public static long RECONNECT_NOT_SET
- A "reconnection not set" value for the SSE reconnect delay set via
retry field.
- Since:
- 2.3
LAST_EVENT_ID_HEADER
public static final String LAST_EVENT_ID_HEADER
"Last-Event-ID" HTTP request header name as defined by
SSE specification.
- Since:
- 2.3
- See Also:
- Constant Field Values
SseFeature
public SseFeature()
configure
public boolean configure(javax.ws.rs.core.FeatureContext context)
- Specified by:
configure in interface javax.ws.rs.core.Feature
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.