Package jakarta.ws.rs.core
Class Link.JaxbLink
- java.lang.Object
-
- jakarta.ws.rs.core.Link.JaxbLink
-
- Enclosing class:
- Link
public static class Link.JaxbLink extends java.lang.Object
Value type forLink
that can be marshalled and unmarshalled by JAXB. 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.JaxbAdapter
-
-
Constructor Summary
Constructors Constructor Description JaxbLink()
Default constructor needed during unmarshalling.JaxbLink(java.net.URI uri)
Construct an instance from a URI and no parameters.JaxbLink(java.net.URI uri, java.util.Map<javax.xml.namespace.QName,java.lang.Object> params)
Construct an instance from a URI and some parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.util.Map<javax.xml.namespace.QName,java.lang.Object>
getParams()
Get the parameter map for this link.java.net.URI
getUri()
Get the underlying URI for this link.int
hashCode()
-
-
-
Constructor Detail
-
JaxbLink
public JaxbLink()
Default constructor needed during unmarshalling.
-
JaxbLink
public JaxbLink(java.net.URI uri)
Construct an instance from a URI and no parameters.- Parameters:
uri
- underlying URI.
-
JaxbLink
public JaxbLink(java.net.URI uri, java.util.Map<javax.xml.namespace.QName,java.lang.Object> params)
Construct an instance from a URI and some parameters.- Parameters:
uri
- underlying URI.params
- parameters of this link.
-
-
Method Detail
-
getUri
public java.net.URI getUri()
Get the underlying URI for this link.- Returns:
- underlying URI.
-
getParams
public java.util.Map<javax.xml.namespace.QName,java.lang.Object> getParams()
Get the parameter map for this link.- Returns:
- parameter map.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-