java.lang.Object
org.glassfish.jersey.examples.linking.representation.JaxbLink

public class 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.

The class used to be a part Jakarta REST API 3.1.

Since:
4.0
See Also:
  • Constructor Details

    • 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 Details

    • 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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object