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