org.glassfish.jersey.media.sse
Class SseFeature

java.lang.Object
  extended by org.glassfish.jersey.media.sse.SseFeature
All Implemented Interfaces:
Feature

public class SseFeature
extends java.lang.Object
implements Feature

A JAX-RS feature that enables Server-Sent Events support.

Author:
Marek Potociar (marek.potociar 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
SseFeature()
           
 
Method Summary
 boolean configure(FeatureContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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

SseFeature

public SseFeature()
Method Detail

configure

public boolean configure(FeatureContext context)
Specified by:
configure in interface Feature


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