org.glassfish.jersey.media.sse
Class EventChannel
java.lang.Object
javax.ws.rs.core.GenericType<T>
org.glassfish.jersey.server.ChunkedOutput<OutboundEvent>
org.glassfish.jersey.media.sse.EventChannel
- All Implemented Interfaces:
- java.io.Closeable
public class EventChannel
- extends ChunkedOutput<OutboundEvent>
Outgoing event message channel.
When returned from resource method, underlying connection is kept open and application
is able to send events. One instance of this class corresponds with exactly one HTTP connection.
- Author:
- Pavel Bucek (pavel.bucek at oracle.com)
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SERVER_SENT_EVENTS
public static final java.lang.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 MediaType SERVER_SENT_EVENTS_TYPE
- Server sent events media type.
EventChannel
public EventChannel()
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.