Interface RemoteResource
-
- All Known Implementing Classes:
DiscoveredResource
public interface RemoteResourceA REST resource that can be discovered and can be either gone or available.- Author:
- Oliver Gierke
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.hateoas.LinkgetLink()Returns theLinkto the resource if it is available, or null if it is gone (i.e.voidverifyOrDiscover()Discovers the resource if it hasn't been discovered yet or has become unavailable.
-
-
-
Method Detail
-
getLink
org.springframework.hateoas.Link getLink()
Returns theLinkto 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.
-
-