public abstract class HalResource<T extends HalResource<?>> extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected Map<String,Object> | _embeddedEmbedded resources | 
| protected Map<String,HalLink> | _linksThis resource links | 
| protected HalLinker | linker | 
| Constructor and Description | 
|---|
| HalResource() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addEmbedded(String name,
           HalResource<?> embedded) | 
| void | addEmbedded(String name,
           List<HalResource<?>> embeddedCollection) | 
| void | addLink(String rel,
       String href) | 
| void | addLink(String rel,
       URI hrefUri) | 
| T | embed(HalRelation relation,
     ProcessEngine processEngine)Can be used to embed a relation. | 
| Map<String,Object> | get_embedded() | 
| Map<String,HalLink> | get_links() | 
| Object | getEmbedded(String name) | 
protected transient HalLinker linker
public void addEmbedded(String name, HalResource<?> embedded)
public void addEmbedded(String name, List<HalResource<?>> embeddedCollection)
public T embed(HalRelation relation, ProcessEngine processEngine)
relation - the relation to embeddedprocessEngine - used to resolve the resourcesCopyright © 2018. All rights reserved.