Interface ResourceLinkResolver
- All Known Implementing Classes:
AbstractResourceLinkResolver
public interface ResourceLinkResolver
Responsible for resolving a link (type of
ResourceLink
) for a Resource
representation.-
Method Summary
Modifier and TypeMethodDescriptionResolves aResourceLink
for the givenresource
.Resolves aResourceLink
for the givenresource
with passinglinkVariables
that can be used by implementation to expand its internal link generation template.
-
Method Details
-
resolve
Resolves aResourceLink
for the givenresource
.- Parameters:
resource
- resource representation- Returns:
- a
ResourceLink
for the givenresource
- Throws:
ResourceException
- if resource resolution operation fails
-
resolve
Resolves aResourceLink
for the givenresource
with passinglinkVariables
that can be used by implementation to expand its internal link generation template.How the
linkVariables
is used in link generation template expansion is totally up to an implementation.- Parameters:
resource
- resource representationlinkVariables
- the variables to expand the internal link generation template- Returns:
- a
ResourceLink
for the givenresource
- Throws:
ResourceException
- if resource resolution operation fails
-