org.fusesource.examples.cxf.jaxrs.security
Class Customer
java.lang.Object
org.fusesource.examples.cxf.jaxrs.security.Customer
public class Customer
- extends java.lang.Object
The Customer 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 Customer will look like this:
123
National Aquarium
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Customer
public Customer()
getId
public long getId()
setId
public void setId(long id)
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
Copyright © 2012 FuseSource. All Rights Reserved.