org.fusesource.examples.cxf.jaxrs.security
Class Product
java.lang.Object
org.fusesource.examples.cxf.jaxrs.security.Product
public class Product
- extends java.lang.Object
The Product class is just a plain old java object, with a few properties and getters and setters.
By adding the @XmlRootElement annotation, we make it possible for JAXB to unmarshal this object into a XML document and
to marshal it back from the same XML document.
The XML representation of a Product will look like this:
10010
Armadillo
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Product
public Product()
getId
public long getId()
setId
public void setId(long id)
getDescription
public java.lang.String getDescription()
setDescription
public void setDescription(java.lang.String d)
Copyright © 2012 FuseSource. All Rights Reserved.