Class Link.JaxbLink

  • Enclosing class:
    Link

    public static class Link.JaxbLink
    extends Object
    Value type for Link 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 Detail

      • JaxbLink

        public JaxbLink()
        Default constructor needed during unmarshalling.
      • JaxbLink

        public JaxbLink​(URI uri)
        Construct an instance from a URI and no parameters.
        Parameters:
        uri - underlying URI.
      • JaxbLink

        public JaxbLink​(URI uri,
                        Map<QName,​Object> params)
        Construct an instance from a URI and some parameters.
        Parameters:
        uri - underlying URI.
        params - parameters of this link.
    • Method Detail

      • getUri

        public URI getUri()
        Get the underlying URI for this link.
        Returns:
        underlying URI.
      • getParams

        public Map<QName,​Object> getParams()
        Get the parameter map for this link.
        Returns:
        parameter map.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object