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

java.lang.Object
  extended by org.glassfish.jersey.examples.bookstore.webapp.resource.Item
Direct Known Subclasses:
Book, CD

@Produces(value="text/html;qs=5")
public class Item
extends Object


Constructor Summary
Item()
           
Item(String title, String author)
           
 
Method Summary
 String getAuthor()
           
 String getTitle()
           
 Item getXml()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Item

public Item()

Item

public Item(String title,
            String author)
Method Detail

getTitle

public String getTitle()

getAuthor

public String getAuthor()

getXml

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

toString

public String toString()
Overrides:
toString in class Object


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