Package jakarta.ws.rs.core
Class Link.JaxbAdapter
- java.lang.Object
- 
- jakarta.xml.bind.annotation.adapters.XmlAdapter<Link.JaxbLink,Link>
- 
- jakarta.ws.rs.core.Link.JaxbAdapter
 
 
- 
- Enclosing class:
- Link
 
 @Deprecated public static class Link.JaxbAdapter extends XmlAdapter<Link.JaxbLink,Link> Deprecated.An implementation of JAXBXmlAdapterthat maps the JAX-RSLinktype to a value that can be marshalled and unmarshalled by JAXB. The following example shows how to use this adapter on a JAXB bean class:@XmlRootElement public class MyModel { private Link link; @XmlElement(name="link") @XmlJavaTypeAdapter(JaxbAdapter.class) public Link getLink() { return link; } ... }Note that usage of this class requires the Jakarta XML Binding API and an implementation. The Jakarta RESTful Web Services implementation is not required to provide these dependencies.- Since:
- 2.0
- See Also:
- Link.JaxbLink
 
- 
- 
Constructor SummaryConstructors Constructor Description JaxbAdapter()Deprecated.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Link.JaxbLinkmarshal(Link v)Deprecated.Convert aLinkinto aLink.JaxbLink.Linkunmarshal(Link.JaxbLink v)Deprecated.Convert aLink.JaxbLinkinto aLink.
 
- 
- 
- 
Method Detail- 
unmarshalpublic Link unmarshal(Link.JaxbLink v) Deprecated.Convert aLink.JaxbLinkinto aLink.- Specified by:
- unmarshalin class- XmlAdapter<Link.JaxbLink,Link>
- Parameters:
- v- instance of type- Link.JaxbLink.
- Returns:
- mapped instance of type Link.JaxbLink
 
 - 
marshalpublic Link.JaxbLink marshal(Link v) Deprecated.Convert aLinkinto aLink.JaxbLink.- Specified by:
- marshalin class- XmlAdapter<Link.JaxbLink,Link>
- Parameters:
- v- instance of type- Link.
- Returns:
- mapped instance of type Link.JaxbLink.
 
 
- 
 
-