Uses of Class
org.springframework.hateoas.Link
Packages that use Link
Package
Description
Value objects to ease creating
Links and link driven representations for REST
webservices.Client side support.
Spring container configuration support.
Value objects to build Collection+JSON representations.
HAL-specific extensions, SPIs and Jackson customizations.
HAL-FORMS extension media type.
UBER media type objects.
Vnd.Error media type.
Server-side components for hypermedia handling.
Implementations of core API interfaces.
Spring MVC helper classes to build
Links and assemble
RepresentationModel types.Spring WebFlux components to build
Links and assemble
RepresentationModel types.-
Uses of Link in org.springframework.hateoas
Methods in org.springframework.hateoas that return LinkModifier and TypeMethodDescriptionLink.andAffordance(Affordance affordance) Create newLinkwith an additionalAffordance.Link.andAffordances(List<Affordance> affordances) Create newLinkwith additionalAffordances.Turns the current template into aLinkby expanding it using the given parameters.Turns the current template into aLinkby expanding it using the given parameters.AffordanceModel.getLink()Links.getRequiredLink(String rel) Returns theLinkwith the given relation.Links.getRequiredLink(LinkRelation relation) Returns theLinkwith the given relation.RepresentationModel.getRequiredLink(String relation) Returns the link with the given relation.RepresentationModel.getRequiredLink(LinkRelation relation) Returns the link with the given relation.static LinkCreates a new link to the given URI with the self relation.static LinkCreates a newLinkto the given href with the given relation.static LinkLink.of(String href, LinkRelation relation) Creates a newLinkto the given href andLinkRelation.static LinkLink.of(UriTemplate template, String relation) Creates a newLinkto the givenUriTemplateand link relation.static LinkLink.of(UriTemplate template, LinkRelation relation) static LinkLink.withAffordances(List<Affordance> affordances) Creates a newLinkwith the givenAffordances.Link.withDeprecation(String deprecation) Create a newLinkby copying all attributes and applying the new deprecation.Create a newLinkby copying all attributes and applying the new href.Link.withHreflang(String hreflang) Create a newLinkby copying all attributes and applying the new hreflang.Create a newLinkby copying all attributes and applying the new media.Create a newLinkby copying all attributes and applying the new name.Link.withProfile(String profile) Create a newLinkby copying all attributes and applying the new profile.Creates a newLinkwith the same href but givenLinkRelation.Link.withRel(LinkRelation relation) Creates a newLinkwith the same href but givenLinkRelation.Link.withSelfRel()Returns aLinkpointing to the same URI but with theselfrelation.Create a newLinkby copying all attributes and applying the new title.Create a newLinkby copying all attributes and applying the new type.Methods in org.springframework.hateoas that return types with arguments of type LinkModifier and TypeMethodDescriptionLinks.collector()Returns aLinkwith the given relation if contained in the currentLinksinstance,Optional.empty()otherwise.Links.getLink(LinkRelation rel) Returns theLinkwith the given rel.Returns the link with the given relation.RepresentationModel.getLink(LinkRelation relation) Returns the link with the givenLinkRelation.Returns allLinks with the given relation.RepresentationModel.getLinks(LinkRelation relation) Returns allLinks with the given relation.PagedModel.getNextLink()Returns the Link pointing to the next page (if set).SlicedModel.getNextLink()Returns theLinkpointing to the next slice (if set).PagedModel.getPreviousLink()Returns the Link pointing to the previous page (if set).SlicedModel.getPreviousLink()Returns theLinkpointing to the previous slice (if set).Links.iterator()Links.stream()Links.toList()Methods in org.springframework.hateoas with parameters of type LinkModifier and TypeMethodDescriptionAdds the given link to the resource.Adds all givenLinks to the resource.final LinksAdds the given links if the given condition is true.booleanstatic <T> CollectionModel<T>Creates a new empty collection model with the given links.static <T> PagedModel<T>Creates an emptyPagedModelwith the given links.static <T> PagedModel<T>PagedModel.empty(PagedModel.PageMetadata metadata, Link... links) Creates an emptyPagedModelwith the givenPagedModel.PageMetadataand links.static <T> SlicedModel<T>Creates an emptySlicedModelwith the given links.static <T> SlicedModel<T>SlicedModel.empty(SlicedModel.SliceMetadata metadata, Link... links) Creates an emptySlicedModelwith the givenSlicedModel.SliceMetadataand links.Links.merge(Links.MergeMode mode, Link... links) Merges the currentLinkswith the given ones applying the givenLinks.MergeMode.static <T> CollectionModel<T>Creates aCollectionModelinstance with the given content andLinks (optional).static <T> EntityModel<T>Creates a newEntityModelwith the given content andLinks (optional).static Linksstatic <T> PagedModel<T>PagedModel.of(Collection<T> content, PagedModel.PageMetadata metadata, Link... links) static <T> SlicedModel<T>SlicedModel.of(Collection<T> content, SlicedModel.SliceMetadata metadata, Link... links) booleanAffordanceModel.pointsToTargetOf(Link link) Returns whether theAffordancepoints to the target of the givenLink.Method parameters in org.springframework.hateoas with type arguments of type LinkModifier and TypeMethodDescriptionAdds all givenLinks to the resource.Adds allLinks produced by the given Supplier if the guard is true.Adds theLinkproduced by the given Supplier if the guard is true.final LinksAdds the given links if the given condition is true.booleanbooleanLinks.containsSameLinksAs(Iterable<Link> links) static <T> CollectionModel<T>Creates a new empty collection model with the given links.static <T> PagedModel<T>Creates an emptyPagedModelwith the given links.static <T> PagedModel<T>PagedModel.empty(PagedModel.PageMetadata metadata, Iterable<Link> links) Creates an emptyPagedModelwith the givenPagedModel.PageMetadataand links.static <T> SlicedModel<T>Creates an emptySlicedModelwith the given links.static <T> SlicedModel<T>SlicedModel.empty(SlicedModel.SliceMetadata metadata, Iterable<Link> links) Creates an emptySlicedModelwith the givenSlicedModel.SliceMetadataand links.RepresentationModel.mapLink(LinkRelation relation, Function<Link, Link> mapper) Replaces the link(s) with the givenLinkRelationwith the mapper applied to each of the links.RepresentationModel.mapLink(LinkRelation relation, Function<Link, Link> mapper) Replaces the link(s) with the givenLinkRelationwith the mapper applied to each of the links.RepresentationModel.mapLinkIf(boolean condition, LinkRelation relation, Function<Link, Link> mapper) Replaces the link(s) with the givenLinkRelationwith the mapper applied to each of the links if the given condition is true.RepresentationModel.mapLinkIf(boolean condition, LinkRelation relation, Function<Link, Link> mapper) Replaces the link(s) with the givenLinkRelationwith the mapper applied to each of the links if the given condition is true.Links.merge(Links.MergeMode mode, Iterable<Link> links) Merges the currentLinkswith the given ones applying the givenLinks.MergeMode.Links.merge(Links.MergeMode mode, Stream<Link> links) Merges the currentLinkswith the given ones applying the givenLinks.MergeMode.static <T> EntityModel<T>Creates a newEntityModelwith the given content andLinks.static Linksstatic <T> PagedModel<T>PagedModel.of(Collection<T> content, PagedModel.PageMetadata metadata, Iterable<Link> links) static <T> RepresentationModel<?>Creates a newRepresentationModelfor the given content object and links.static <T> SlicedModel<T>SlicedModel.of(Collection<T> content, SlicedModel.SliceMetadata metadata, Iterable<Link> links) Constructors in org.springframework.hateoas with parameters of type LinkModifierConstructorDescriptionAffordanceModel(String name, Link link, HttpMethod httpMethod, AffordanceModel.InputPayloadMetadata input, List<QueryParameter> queryMethodParameters, AffordanceModel.PayloadMetadata output) RepresentationModel(Link initialLink) Constructor parameters in org.springframework.hateoas with type arguments of type LinkModifierConstructorDescriptionprotectedEntityModel(T content, Iterable<Link> links) Creates a newEntityModelwith the given content andLinks.protectedPagedModel(Collection<T> content, PagedModel.PageMetadata metadata, Iterable<Link> links) protectedPagedModel(Collection<T> content, PagedModel.PageMetadata metadata, Iterable<Link> links, ResolvableType fallbackType) RepresentationModel(Iterable<Link> initialLinks) protectedSlicedModel(Collection<T> content, SlicedModel.SliceMetadata metadata, Iterable<Link> links) protectedSlicedModel(Collection<T> content, SlicedModel.SliceMetadata metadata, Iterable<Link> links, ResolvableType fallbackType) -
Uses of Link in org.springframework.hateoas.client
Methods in org.springframework.hateoas.client that return LinkModifier and TypeMethodDescriptionTraverson.TraversalBuilder.asLink()Returns theLinkfound for the last rel in the rels configured to follow.Traverson.TraversalBuilder.asTemplatedLink()Returns the templatedLinkfound for the last relation in the rels configured to follow.protected LinkJsonPathLinkDiscoverer.extractLink(Object element, LinkRelation rel) Callback for eachLinkDiscovererto extract relevant attributes and generate aLink.default LinkLinkDiscoverer.findRequiredLinkWithRel(LinkRelation relation, InputStream representation) Finds a single link with the given relation type in the givenInputStreamrepresentation.default LinkLinkDiscoverer.findRequiredLinkWithRel(LinkRelation relation, String representation) Finds a single link with the given relation in the givenStringrepresentation.Methods in org.springframework.hateoas.client that return types with arguments of type LinkModifier and TypeMethodDescriptionJsonPathLinkDiscoverer.findLinkWithRel(LinkRelation relation, InputStream representation) JsonPathLinkDiscoverer.findLinkWithRel(LinkRelation relation, String representation) LinkDiscoverer.findLinkWithRel(String relation, InputStream representation) Finds a single link with the given relation type in the givenInputStreamrepresentation.LinkDiscoverer.findLinkWithRel(String relation, String representation) Finds a single link with the given relation type in the givenStringrepresentation.LinkDiscoverer.findLinkWithRel(LinkRelation relation, InputStream representation) Finds a single link with the givenLinkRelationin the givenInputStreamrepresentation.LinkDiscoverer.findLinkWithRel(LinkRelation relation, String representation) Finds a single link with the givenLinkRelationin the givenStringrepresentation. -
Uses of Link in org.springframework.hateoas.mediatype
Methods in org.springframework.hateoas.mediatype that return LinkModifier and TypeMethodDescriptionConfiguredAffordance.getTarget()Returns the affordance's target.AffordanceOperations.toLink()Returns aLinkequipped with theAffordancecurrently under construction.Affordances.toLink()Methods in org.springframework.hateoas.mediatype with parameters of type LinkModifier and TypeMethodDescriptionstatic AffordancesConfigurableAffordance.withTarget(Link target) Create a newConfigurableAffordanceby copying all attributes and replacing the target. -
Uses of Link in org.springframework.hateoas.mediatype.collectionjson
Methods in org.springframework.hateoas.mediatype.collectionjson that return types with arguments of type LinkModifier and TypeMethodDescriptionCollectionJsonLinkDiscoverer.findLinkWithRel(LinkRelation relation, InputStream representation) CollectionJsonLinkDiscoverer.findLinkWithRel(LinkRelation relation, String representation) -
Uses of Link in org.springframework.hateoas.mediatype.hal
Subclasses of Link in org.springframework.hateoas.mediatype.halModifier and TypeClassDescriptionprotected static classValue object to get the curieLinkrendered in JSON.classCustom mixin to avoid rel attributes being rendered for HAL.Methods in org.springframework.hateoas.mediatype.hal that return LinkModifier and TypeMethodDescriptionprotected LinkHalLinkDiscoverer.extractLink(Object element, LinkRelation rel) static LinkMethods in org.springframework.hateoas.mediatype.hal that return types with arguments of type LinkModifier and TypeMethodDescriptionJackson2HalModule.HalLinkListDeserializer.deserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt) Methods in org.springframework.hateoas.mediatype.hal with parameters of type LinkModifier and TypeMethodDescriptionConcludes the set up of a preview for the givenLink.CurieProvider.getNamespacedRelFrom(Link link) Returns the rel to be rendered for the givenLink.DefaultCurieProvider.getNamespacedRelFrom(Link link) Add aLinkto the whole thing.Method parameters in org.springframework.hateoas.mediatype.hal with type arguments of type Link -
Uses of Link in org.springframework.hateoas.mediatype.hal.forms
Methods in org.springframework.hateoas.mediatype.hal.forms that return LinkModifier and TypeMethodDescriptionHalFormsOptions.Remote.getLink()Returns theLinkpointing to the resource returning option values.Methods in org.springframework.hateoas.mediatype.hal.forms with parameters of type LinkModifier and TypeMethodDescriptionstatic HalFormsOptions.RemoteCreates a newHalFormsOptions.Remoteoptions representation using the givenLink. -
Uses of Link in org.springframework.hateoas.mediatype.uber
Methods in org.springframework.hateoas.mediatype.uber that return types with arguments of type LinkModifier and TypeMethodDescriptionUberLinkDiscoverer.findLinkWithRel(LinkRelation rel, InputStream representation) UberLinkDiscoverer.findLinkWithRel(LinkRelation rel, String representation) -
Uses of Link in org.springframework.hateoas.mediatype.vnderrors
Methods in org.springframework.hateoas.mediatype.vnderrors with parameters of type LinkModifier and TypeMethodDescriptionDeprecated.Deprecated.Constructors in org.springframework.hateoas.mediatype.vnderrors with parameters of type LinkModifierConstructorDescriptionDeprecated.Deprecated.Deprecated.Creates a newVndErrorsinstance containing a singleVndErrors.VndErrorwith the given logref, message and optionalLinks.Constructor parameters in org.springframework.hateoas.mediatype.vnderrors with type arguments of type Link -
Uses of Link in org.springframework.hateoas.server
Methods in org.springframework.hateoas.server that return LinkModifier and TypeMethodDescriptionEntityLinks.linkToCollectionResource(Class<?> type) Creates aLinkpointing to the collection resource of the given type.TypedEntityLinks.ExtendedTypedEntityLinks.linkToCollectionResource()Creates aLinkpointing to the collection resource of the configured type.EntityLinks.linkToItemResource(Class<?> type, Object id) Creates aLinkpointing to item resource backing the given entity type and id.default <T> LinkEntityLinks.linkToItemResource(T entity, Function<T, Object> identifierExtractor) Creates aLinkpointing to item resource backing the given entity and identifier extractor.TypedEntityLinks.linkToItemResource(T entity) Creates aLinkpointing to item resource backing the given entity.default LinkCreates theLinkbuilt by the current builder instance with the given link relation.LinkBuilder.withRel(LinkRelation rel) Creates theLinkbuilt by the current builder instance with the givenLinkRelation.LinkBuilder.withSelfRel()Creates theLinkbuilt by the current builder instance with the default self link relation. -
Uses of Link in org.springframework.hateoas.server.core
Methods in org.springframework.hateoas.server.core that return LinkModifier and TypeMethodDescriptionControllerEntityLinks.linkToCollectionResource(Class<?> entity) DelegatingEntityLinks.linkToCollectionResource(Class<?> type) ControllerEntityLinks.linkToItemResource(Class<?> entity, Object id) DelegatingEntityLinks.linkToItemResource(Class<?> type, Object id) LinkBuilderSupport.withRel(LinkRelation rel) LinkBuilderSupport.withSelfRel() -
Uses of Link in org.springframework.hateoas.server.mvc
Methods in org.springframework.hateoas.server.mvc that return LinkModifier and TypeMethodDescriptionstatic LinkCreates a newLinkfrom the givenMvcUriComponentsBuilderinvocation defaulting to theIanaLinkRelations.SELFlink relation.static LinkMvcLink.of(Object invocation, LinkRelation relation) Creates a newLinkfrom the givenMvcUriComponentsBuilderinvocation.static LinkCreates a newLinkfrom the given lazyMvcUriComponentsBuilderinvocation defaulting to theIanaLinkRelations.SELFlink relation.static LinkMvcLink.of(Supplier<Object> invocation, LinkRelation relation) Creates a newLinkfrom the given lazyMvcUriComponentsBuilderinvocation. -
Uses of Link in org.springframework.hateoas.server.reactive
Methods in org.springframework.hateoas.server.reactive that return types with arguments of type LinkModifier and TypeMethodDescriptionreactor.core.publisher.Mono<Link>WebFluxLinkBuilder.WebFluxLink.toMono()Returns the underlyingMonoofLinkfor further handling within a reactive pipeline.reactor.core.publisher.Mono<Link>Method parameters in org.springframework.hateoas.server.reactive with type arguments of type LinkModifier and TypeMethodDescriptionCreates a newWebFluxLinkBuilder.WebFluxLinkwith the currentLinkinstance transformed using the given mapper.Creates a newWebFluxLinkBuilder.WebFluxLinkwith the currentLinkinstance transformed using the given mapper.WebFluxLinkBuilder.WebFluxBuilder.toLink(Function<WebFluxLinkBuilder, reactor.core.publisher.Mono<Link>> finisher) General callback to produce aLinkfrom the givenWebFluxLinkBuilder.reactor.core.publisher.Mono<Link>reactor.core.publisher.Mono<Link>Constructor parameters in org.springframework.hateoas.server.reactive with type arguments of type Link
VndError(String, String, Object, Link...)(with proper ordering of arguments)