public final class ItemLinksBuilder
extends java.lang.Object
ItemLinks
object builder.Constructor and Description |
---|
ItemLinksBuilder() |
Modifier and Type | Method and Description |
---|---|
ItemLinksBuilder |
addAlternate(java.lang.String href)
Adds a 'alternate' link.
|
ItemLinksBuilder |
addCanonical(java.lang.String href)
Adds a 'canonical' link.
|
ItemLinksBuilder |
addCanonical(java.lang.String href,
java.lang.String mediaType)
Adds a 'canonical' link.
|
ItemLinksBuilder |
addCreate(java.lang.String href)
Adds a 'create' link.
|
ItemLinksBuilder |
addDelete(java.lang.String href)
Adds a 'delete' link.
|
ItemLinksBuilder |
addDescribedBy(java.lang.String href)
Adds a 'describedBy' link.
|
ItemLinksBuilder |
addDescribes(java.lang.String href)
Adds a 'describes' link.
|
ItemLinksBuilder |
addExecute(java.lang.String href,
java.lang.String method)
Adds a 'execute' link.
|
ItemLinksBuilder |
addFind(java.lang.String href)
Adds a 'find' link.
|
ItemLinksBuilder |
addNext(java.lang.String href)
Adds a 'next' link.
|
ItemLinksBuilder |
addPrev(java.lang.String href)
Adds a 'prev' link.
|
ItemLinksBuilder |
addSelf(java.lang.String href)
Adds a 'self' link.
|
ItemLinksBuilder |
addUpdate(java.lang.String href)
Adds a 'update' link.
|
org.eclipse.persistence.internal.jpa.rs.metadata.model.ItemLinks |
build()
Builds
ItemLinks object. |
java.util.List<org.eclipse.persistence.internal.jpa.rs.metadata.model.LinkV2> |
getList()
Returns a list of links.
|
public ItemLinksBuilder addSelf(java.lang.String href)
href
- 'self' linkItemLinksBuilder
with added 'self' link.public ItemLinksBuilder addCanonical(java.lang.String href)
href
- 'canonical' linkItemLinksBuilder
with added 'canonical' link.public ItemLinksBuilder addCanonical(java.lang.String href, java.lang.String mediaType)
href
- 'canonical' linkmediaType
- media typeItemLinksBuilder
with added 'canonical' link.public ItemLinksBuilder addNext(java.lang.String href)
href
- 'next' linkItemLinksBuilder
with added 'next' link.public ItemLinksBuilder addPrev(java.lang.String href)
href
- 'prev' linkItemLinksBuilder
with added 'prev' link.public ItemLinksBuilder addAlternate(java.lang.String href)
href
- 'alternate' linkItemLinksBuilder
with added 'alternate' link.public ItemLinksBuilder addDescribes(java.lang.String href)
href
- 'describes' linkItemLinksBuilder
with added 'describes' link.public ItemLinksBuilder addDescribedBy(java.lang.String href)
href
- 'describedBy' linkItemLinksBuilder
with added 'describedBy' link.public ItemLinksBuilder addCreate(java.lang.String href)
href
- 'create' linkItemLinksBuilder
with added 'create' link.public ItemLinksBuilder addFind(java.lang.String href)
href
- 'find' linkItemLinksBuilder
with added 'find' link.public ItemLinksBuilder addUpdate(java.lang.String href)
href
- 'update' linkItemLinksBuilder
with added 'update' link.public ItemLinksBuilder addDelete(java.lang.String href)
href
- 'delete' linkItemLinksBuilder
with added 'delete' link.public ItemLinksBuilder addExecute(java.lang.String href, java.lang.String method)
href
- 'execute' linkmethod
- GET/POST etc.ItemLinksBuilder
with added 'execute' link.public org.eclipse.persistence.internal.jpa.rs.metadata.model.ItemLinks build()
ItemLinks
object.ItemLinks
object.public java.util.List<org.eclipse.persistence.internal.jpa.rs.metadata.model.LinkV2> getList()