javax.ws.rs.core
Class Link.JaxbAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<Link.JaxbLink,Link>
      extended by javax.ws.rs.core.Link.JaxbAdapter
Enclosing class:
Link

public static class Link.JaxbAdapter
extends XmlAdapter<Link.JaxbLink,Link>

An implementation of JAXB XmlAdapter that maps the JAX-RS Link type to a value that can be marshalled and unmarshalled by JAXB.

All link parameters are treated as multi valued except for "title" and "method".

Since:
2.0
Author:
Santiago Pericas-Geertsen
See Also:
Link.JaxbLink

Constructor Summary
Link.JaxbAdapter()
           
 
Method Summary
 Link.JaxbLink marshal(Link v)
           
 Link unmarshal(Link.JaxbLink v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Link.JaxbAdapter

public Link.JaxbAdapter()
Method Detail

unmarshal

public Link unmarshal(Link.JaxbLink v)
               throws Exception
Specified by:
unmarshal in class XmlAdapter<Link.JaxbLink,Link>
Throws:
Exception

marshal

public Link.JaxbLink marshal(Link v)
                      throws Exception
Specified by:
marshal in class XmlAdapter<Link.JaxbLink,Link>
Throws:
Exception


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.