org.glassfish.jersey.media.sse
Class EventChannel

java.lang.Object
  extended by javax.ws.rs.core.GenericType<T>
      extended by org.glassfish.jersey.server.ChunkedResponse<OutboundEvent>
          extended by org.glassfish.jersey.media.sse.EventChannel
All Implemented Interfaces:
java.io.Closeable

public class EventChannel
extends ChunkedResponse<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)

Field Summary
static java.lang.String SERVER_SENT_EVENTS
          String representation of Server sent events media type.
static MediaType SERVER_SENT_EVENTS_TYPE
          Server sent events media type.
 
Constructor Summary
EventChannel()
           
 
Method Summary
 
Methods inherited from class org.glassfish.jersey.server.ChunkedResponse
close, equals, hashCode, isClosed, toString, write
 
Methods inherited from class javax.ws.rs.core.GenericType
getRawType, getType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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.

Constructor Detail

EventChannel

public EventChannel()


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.