org.glassfish.jersey.examples.sseitemstore
Class ItemStoreResource
java.lang.Object
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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ItemStoreResource
public ItemStoreResource()
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.