| Package | Description |
|---|---|
| org.springframework.hateoas.mediatype.hal.forms |
HAL-FORMS extension media type.
|
| Modifier and Type | Method and Description |
|---|---|
HalFormsDocument<T> |
HalFormsDocument.andEmbedded(HalLinkRelation key,
Object value)
Adds the given value as embedded one.
|
HalFormsDocument<T> |
HalFormsDocument.andLink(Link link)
Adds the given
Link to the current document. |
HalFormsDocument<T> |
HalFormsDocument.andTemplate(String name,
HalFormsTemplate template)
Adds the given
HalFormsTemplate to the current document. |
static HalFormsDocument<?> |
HalFormsDocument.empty()
Creates a new empty
HalFormsDocument. |
static <T> HalFormsDocument<T> |
HalFormsDocument.forEntities(Collection<T> entities)
returns a new
HalFormsDocument for the given resources. |
static <T> HalFormsDocument<T> |
HalFormsDocument.forEntity(T resource)
Creates a new
HalFormsDocument for the given resource. |
static HalFormsDocument<?> |
HalFormsDocument.forRepresentationModel(RepresentationModel<?> model)
Creates a new
HalFormsDocument for the given resource support. |
HalFormsDocument<T> |
HalFormsDocument.withPageMetadata(PagedModel.PageMetadata metadata) |
Copyright © 2011–2020 Pivotal, Inc.. All rights reserved.