Package | Description |
---|---|
org.springframework.hateoas.mediatype.hal |
HAL-specific extensions, SPIs and Jackson customizations.
|
Modifier and Type | Method and Description |
---|---|
HalModelBuilder |
HalModelBuilder.embed(Collection<?> collection) |
HalModelBuilder |
HalModelBuilder.embed(Collection<?> collection,
Class<?> type) |
HalModelBuilder |
HalModelBuilder.embed(Collection<?> collection,
LinkRelation relation)
Embeds the given collection in the
RepresentationModel for the given LinkRelation . |
HalModelBuilder |
HalModelBuilder.embed(Object entity)
Embeds the given entity into the
RepresentationModel . |
HalModelBuilder |
HalModelBuilder.embed(Object entity,
LinkRelation linkRelation)
Embed the entity and associate it with the
LinkRelation . |
static HalModelBuilder |
HalModelBuilder.emptyHalModel()
Creates a new
HalModelBuilder without a primary payload. |
HalModelBuilder |
HalModelBuilder.entity(Object entity)
Embed the entity, but with no relation.
|
HalModelBuilder |
HalModelBuilder.PreviewBuilder.forLink(Link link)
Concludes the set up of a preview for the given
Link . |
default HalModelBuilder |
HalModelBuilder.PreviewBuilder.forLink(String href,
LinkRelation relation)
Concludes the set up of a preview for the
Link consisting ot the given href and LinkRelation . |
static HalModelBuilder |
HalModelBuilder.halModel()
Creates a new
HalModelBuilder . |
static HalModelBuilder |
HalModelBuilder.halModel(EmbeddedWrappers wrappers)
Creates a new
HalModelBuilder using the given EmbeddedWrappers . |
static HalModelBuilder |
HalModelBuilder.halModelOf(Object entity)
Creates a new
HalModelBuilder with the given entity as primary payload. |
HalModelBuilder |
HalModelBuilder.link(Link link)
Add a
Link to the whole thing. |
HalModelBuilder |
HalModelBuilder.link(String href,
LinkRelation relation)
|
HalModelBuilder |
HalModelBuilder.links(Iterable<Link> links)
Adds the given
Link s to the RepresentationModel to be built. |
Copyright © 2011–2021 Pivotal, Inc.. All rights reserved.