Class Link

java.lang.Object
rs.jerseyclient.data.Link

public class Link extends Object
A link as defined by HATEOAS responses.

The class is usually required for correct JSON (de)serialization.

Author:
ralph
  • Constructor Details

    • Link

      public Link()
      Default constructor.
  • Method Details

    • getHref

      public String getHref()
      Returns the HREF attribute (URL) of the link.
      Returns:
      the HREF attribute (URL) of the link.
    • setHref

      public void setHref(String href)
      Sets the HREF attribute (URL) of the link.
      Parameters:
      href - the HREF attribute (URL) of the link.