Impl
- An Abstract resource implementation@Produces(value="application/hal+json") @Introspected public abstract class AbstractResource<Impl extends AbstractResource> extends Object implements Resource
Resource
.Constructor and Description |
---|
AbstractResource() |
Modifier and Type | Method and Description |
---|---|
Impl |
embedded(CharSequence ref,
List<Resource> resourceList)
Add an embedded resource with the given reference.
|
Impl |
embedded(CharSequence ref,
Resource... resource)
Add an embedded resource with the given reference.
|
Impl |
embedded(CharSequence ref,
Resource resource)
Add an embedded resource with the given reference.
|
OptionalMultiValues<Resource> |
getEmbedded() |
OptionalMultiValues<Link> |
getLinks() |
Impl |
link(CharSequence ref,
Link link)
Add a link with the given reference.
|
Impl |
link(CharSequence ref,
String link)
Add a link with the given reference.
|
protected void |
setLinks(Map<String,Object> links)
Allows de-serializing of links with Jackson.
|
public Impl link(@Nullable CharSequence ref, @Nullable Link link)
ref
- The referencelink
- The linkpublic Impl link(@Nullable CharSequence ref, @Nullable String link)
ref
- The referencelink
- The linkpublic Impl embedded(CharSequence ref, Resource resource)
ref
- The referenceresource
- The resourcepublic Impl embedded(CharSequence ref, Resource... resource)
ref
- The referenceresource
- The resourcepublic Impl embedded(CharSequence ref, List<Resource> resourceList)
ref
- The referenceresourceList
- The resourcespublic OptionalMultiValues<Link> getLinks()
public OptionalMultiValues<Resource> getEmbedded()
getEmbedded
in interface Resource