public class DefaultJSONApiLinks extends Object implements JSONApiLinks
Constructor and Description |
---|
DefaultJSONApiLinks() |
DefaultJSONApiLinks(String baseUrl) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getRelationshipLinks(PersistentResource resource,
String field)
Links to be used in Relationships of the Response Entity.
|
Map<String,String> |
getResourceLevelLinks(PersistentResource resource)
Links to be used in the Respose Entity.
|
protected String |
getResourceUrl(PersistentResource resource)
Creates the link from resources path.
|
public DefaultJSONApiLinks()
public DefaultJSONApiLinks(String baseUrl)
public Map<String,String> getResourceLevelLinks(PersistentResource resource)
JSONApiLinks
getResourceLevelLinks
in interface JSONApiLinks
public Map<String,String> getRelationshipLinks(PersistentResource resource, String field)
JSONApiLinks
getRelationshipLinks
in interface JSONApiLinks
protected String getResourceUrl(PersistentResource resource)
resource
- Copyright © 2015–2021 Yahoo! Inc.. All rights reserved.