java.lang.Object
org.springframework.boot.actuate.endpoint.web.Link

public class Link extends Object
Details for a link in a HAL-formatted response.
Since:
2.0.0
Author:
Andy Wilkinson
  • Constructor Details

    • Link

      public Link(String href)
      Creates a new Link with the given href.
      Parameters:
      href - the href
  • Method Details

    • getHref

      public String getHref()
      Returns the href of the link.
      Returns:
      the href
    • isTemplated

      public boolean isTemplated()
      Returns whether the href is templated.
      Returns:
      true if the href is templated, otherwise false
    • toString

      public String toString()
      Overrides:
      toString in class Object