Package org.springframework.hateoas.server.core
@NonNullApi
package org.springframework.hateoas.server.core
Implementations of core API interfaces.
-
ClassDescriptionImplementation base class to delegate the higher level methods of
EntityLinksby delegating to the more fine grained ones to reduce the implementation effort for actual implementation classes.Simply helper to reference a dedicated attribute of anAnnotation.LinkRelationProviderthat evaluates theRelationannotation on entity types.MappingDiscovererimplementation that inspects mappings from a particular annotation.Caching adapter ofMappingDiscoverer.EntityLinksimplementation which assumes a certain URI mapping structure: A class-levelExposesResourceForannotation to declare that the annotated controller exposes collection and item resources for. AnRequestMappingannotation to form the base URI of the collection resource. A controller method with a mapping annotation to actually handle at least one HTTP method. A controller method that maps a subordinate resource taking a path variable to identify an item resource.FactoryBeanimplementation to createControllerEntityLinksinstances looking up controller classes from anApplicationContext.Default implementation ofLinkRelationProviderto simply use the uncapitalized version of the given type's name as item resourceLinkRelationas well as an appendedListfor the collection resourceLinkRelation.EntityLinksimplementation that delegates to theEntityLinksinstances registered in thePluginRegistrygiven on instance creation.Utility methods to capture dummy method invocations.A wrapper to handle values to be embedded into aEntityModel.Interface to mark objects that are aware of the rel they'd like to be exposed under.LinkRelationProviderimplementation using the Evo Inflector implementation of an algorithmic approach to English plurals.HeaderLinksResponseEntity<T extends RepresentationModel<?>>SpecialResponseEntitythat exposesLinkinstances in the containedRepresentationModelas link headers instead of in the body.LinkBuilderSupport<T extends LinkBuilder>Base class to implementLinkBuilders based on a Spring MVCUriComponentsBuilder.Strategy interface to discover a URI mapping and relatedAffordances for either a given type or method.Value object to representMethodParametersto allow to easily find the ones with a given annotation.Annotation to configure the relation to be used when embedding objects in HAL representations ofEntityModels andCollectionModel.Extract information needed to assemble anAffordancefrom a Spring MVC web method.ALinkBuilderSupportextension that can keep a list ofTemplateVariablesaround.Helper to easily createParameterizedTypeReferenceinstances to Spring HATEOAS resource types.AParameterizedTypeReferenceto return aCollectionModelof some type.AParameterizedTypeReferenceto return aEntityModelof some type.AParameterizedTypeReferenceto return aPagedModelof some type.A URI mapping on a controller method.Builds and cachesUriTemplateinstances.Utility for taking a method invocation and extracting aLinkBuilder.WebHandler.LinkBuilderCreator<T extends LinkBuilder>WebHandler.PreparedWebHandler<T extends LinkBuilder>