public interface ResourceLinkResolver
ResourceLink
) for a Resource
representation.Modifier and Type | Method and Description |
---|---|
ResourceLink |
resolve(Resource resource)
Resolves a
ResourceLink for the given resource . |
ResourceLink |
resolve(Resource resource,
Map<String,Object> linkVariables)
Resolves a
ResourceLink for the given resource with passing linkVariables that can be
used by implementation to expand its internal link generation template. |
ResourceLink resolve(Resource resource) throws ResourceException
ResourceLink
for the given resource
.resource
- resource representationResourceLink
for the given resource
ResourceException
- if resource resolution operation failsResourceLink resolve(Resource resource, Map<String,Object> linkVariables) throws ResourceException
ResourceLink
for the given resource
with passing linkVariables
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.
resource
- resource representationlinkVariables
- the variables to expand the internal link generation templateResourceLink
for the given resource
ResourceException
- if resource resolution operation failsCopyright © 2017–2020 Hippo B.V. (http://www.onehippo.com). All rights reserved.