Spring Hateoas

org.springframework.hateoas.hal
Interface CurieProvider

All Known Implementing Classes:
DefaultCurieProvider

public interface CurieProvider

API to provide HAL curie information for links.

Since:
0.9
Author:
Oliver Gierke
See Also:
http://tools.ietf.org/html/draft-kelly-json-hal#section-8.2

Method Summary
 Collection<? extends Object> getCurieInformation(Links links)
          Returns an object to render as the base curie information.
 String getNamespacedRelFrom(Link link)
          Returns the rel to be rendered for the given Link.
 

Method Detail

getNamespacedRelFrom

String getNamespacedRelFrom(Link link)
Returns the rel to be rendered for the given Link. Will potentially prefix the rel but also might decide not to, depending on the actual rel.

Parameters:
link -
Returns:

getCurieInformation

Collection<? extends Object> getCurieInformation(Links links)
Returns an object to render as the base curie information. Implementations have to make sure, the retunred instances renders as defined in the spec.

Parameters:
links - the Links that have been added to the response so far.
Returns:
must not be null.

Spring Hateoas

Copyright © 2012-2014–2014 Pivotal, Inc.. All rights reserved.