Uses of Class
org.springframework.hateoas.mediatype.hal.HalModelBuilder
Packages that use HalModelBuilder
Package
Description
HAL-specific extensions, SPIs and Jackson customizations.
-
Uses of HalModelBuilder in org.springframework.hateoas.mediatype.hal
Methods in org.springframework.hateoas.mediatype.hal that return HalModelBuilderModifier and TypeMethodDescriptionEmbeds the given entity into theRepresentationModel.HalModelBuilder.embed(Object entity, LinkRelation linkRelation) Embed the entity and associate it with theLinkRelation.HalModelBuilder.embed(Collection<?> collection) Embeds the given collection in theRepresentationModel.HalModelBuilder.embed(Collection<?> collection, Class<?> type) Embeds the given collection in theRepresentationModeland theLinkRelationderived from the given type.HalModelBuilder.embed(Collection<?> collection, LinkRelation relation) Embeds the given collection in theRepresentationModelfor the givenLinkRelation.Embeds the givenStreamin theRepresentationModel.Embeds the givenStreamin theRepresentationModeland theLinkRelationderived from the given type.HalModelBuilder.embed(Stream<?> stream, LinkRelation relation) static HalModelBuilderHalModelBuilder.emptyHalModel()Creates a newHalModelBuilderwithout a primary payload.Embed the entity, but with no relation.default HalModelBuilderHalModelBuilder.PreviewBuilder.forLink(String href, LinkRelation relation) Concludes the set up of a preview for theLinkconsisting ot the given href andLinkRelation.Concludes the set up of a preview for the givenLink.static HalModelBuilderHalModelBuilder.halModel()Creates a newHalModelBuilder.static HalModelBuilderHalModelBuilder.halModel(EmbeddedWrappers wrappers) Creates a newHalModelBuilderusing the givenEmbeddedWrappers.static HalModelBuilderHalModelBuilder.halModelOf(Object entity) Creates a newHalModelBuilderwith the given entity as primary payload.HalModelBuilder.link(String href, LinkRelation relation) Add aLinkto the whole thing.Adds the givenLinks to theRepresentationModelto be built.