Spring Hateoas

org.springframework.hateoas
Interface RelProvider

All Superinterfaces:
org.springframework.plugin.core.Plugin<Class<?>>
All Known Implementing Classes:
AnnotationRelProvider, ControllerRelProvider, DefaultRelProvider, DelegatingRelProvider, EvoInflectorRelProvider

public interface RelProvider
extends org.springframework.plugin.core.Plugin<Class<?>>

API to provide relation types for collections and items of the given type.

Author:
Oliver Gierke

Method Summary
 String getCollectionResourceRelFor(Class<?> type)
          Returns the relation type to be used to point to a collection resource of the given type.
 String getItemResourceRelFor(Class<?> type)
          Returns the relation type to be used to point to an item resource of the given type.
 
Methods inherited from interface org.springframework.plugin.core.Plugin
supports
 

Method Detail

getItemResourceRelFor

String getItemResourceRelFor(Class<?> type)
Returns the relation type to be used to point to an item resource of the given type.

Parameters:
type - must not be null.
Returns:

getCollectionResourceRelFor

String getCollectionResourceRelFor(Class<?> type)
Returns the relation type to be used to point to a collection resource of the given type.

Parameters:
type - must not be null.
Returns:

Spring Hateoas

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