org.glassfish.jersey.media.sse
Class EventOutput

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

public class EventOutput
extends ChunkedOutput<OutboundEvent>

Outbound Server-Sent Events 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), Marek Potociar (marek.potociar at oracle.com)

Constructor Summary
EventOutput()
          Create new outbound Server-Sent Events channel.
 
Method Summary
 
Methods inherited from class org.glassfish.jersey.server.ChunkedOutput
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
 

Constructor Detail

EventOutput

public EventOutput()
Create new outbound Server-Sent Events channel.



Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.