org.glassfish.jersey.examples.bookstore.webapp.resource
Class Bookstore

java.lang.Object
  extended by org.glassfish.jersey.examples.bookstore.webapp.resource.Bookstore

@Path(value="/")
@Singleton
@Produces(value="text/html;qs=5")
public class Bookstore
extends java.lang.Object


Constructor Summary
Bookstore()
           
 
Method Summary
 Item getItem(java.lang.String itemid)
           
 java.util.Map<java.lang.String,Item> getItems()
           
 java.lang.String getName()
           
 long getSystemTime()
           
 Bookstore getXml()
           
 void setName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bookstore

public Bookstore()
Method Detail

getItem

@Path(value="items/{itemid}/")
public Item getItem(@PathParam(value="itemid")
                              java.lang.String itemid)

getXml

@GET
@Produces(value={"application/xml","text/xml","application/json"})
public Bookstore getXml()

getSystemTime

public long getSystemTime()

getItems

public java.util.Map<java.lang.String,Item> getItems()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)


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