org.glassfish.jersey.examples.sseitemstore
Class ItemStoreResource

java.lang.Object
  extended by org.glassfish.jersey.examples.sseitemstore.ItemStoreResource

@Path(value="items")
public class ItemStoreResource
extends Object

A resource for storing named items.

Author:
Marek Potociar (marek.potociar at oracle.com)

Constructor Summary
ItemStoreResource()
           
 
Method Summary
 void addItem(String name)
           
 EventOutput itemEvents()
           
 String listItems()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemStoreResource

public ItemStoreResource()
Method Detail

listItems

@GET
@Produces(value="text/plain")
public String listItems()

itemEvents

@GET
@Path(value="events")
@Produces(value="text/event-stream")
public EventOutput itemEvents()

addItem

@POST
public void addItem(@FormParam(value="name")
                         String name)


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