Interface RemoteResource

All Known Implementing Classes:
DiscoveredResource

public interface RemoteResource
A REST resource that can be discovered and can be either gone or available.
Author:
Oliver Gierke
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.hateoas.Link
    Returns the Link to the resource if it is available, or null if it is gone (i.e.
    void
    Discovers the resource if it hasn't been discovered yet or has become unavailable.
  • Method Details

    • getLink

      org.springframework.hateoas.Link getLink()
      Returns the Link to the resource if it is available, or null if it is gone (i.e. it either is generally unavailable or can't be discovered).
      Returns:
      a link to the resource.
    • verifyOrDiscover

      void verifyOrDiscover()
      Discovers the resource if it hasn't been discovered yet or has become unavailable. If a link has been discovered previously, it is verified and either confirmed or removed to indicate that it's not available anymore.