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
EntityLinks
by 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
.LinkRelationProvider
that evaluates theRelation
annotation on entity types.MappingDiscoverer
implementation that inspects mappings from a particular annotation.Caching adapter ofMappingDiscoverer
.EntityLinks
implementation which assumes a certain URI mapping structure: A class-levelExposesResourceFor
annotation to declare that the annotated controller exposes collection and item resources for. AnRequestMapping
annotation 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.FactoryBean
implementation to createControllerEntityLinks
instances looking up controller classes from anApplicationContext
.Default implementation ofLinkRelationProvider
to simply use the uncapitalized version of the given type's name as item resourceLinkRelation
as well as an appendedList
for the collection resourceLinkRelation
.EntityLinks
implementation that delegates to theEntityLinks
instances registered in thePluginRegistry
given 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.LinkRelationProvider
implementation using the Evo Inflector implementation of an algorithmic approach to English plurals.HeaderLinksResponseEntity<T extends RepresentationModel<?>>SpecialResponseEntity
that exposesLink
instances in the containedRepresentationModel
as link headers instead of in the body.LinkBuilderSupport<T extends LinkBuilder>Base class to implementLinkBuilder
s based on a Spring MVCUriComponentsBuilder
.Strategy interface to discover a URI mapping and relatedAffordance
s for either a given type or method.Value object to representMethodParameters
to allow to easily find the ones with a given annotation.Annotation to configure the relation to be used when embedding objects in HAL representations ofEntityModel
s andCollectionModel
.Extract information needed to assemble anAffordance
from a Spring MVC web method.ALinkBuilderSupport
extension that can keep a list ofTemplateVariables
around.Helper to easily createParameterizedTypeReference
instances to Spring HATEOAS resource types.AParameterizedTypeReference
to return aCollectionModel
of some type.AParameterizedTypeReference
to return aEntityModel
of some type.AParameterizedTypeReference
to return aPagedModel
of some type.A URI mapping on a controller method.Builds and cachesUriTemplate
instances.Utility for taking a method invocation and extracting aLinkBuilder
.WebHandler.LinkBuilderCreator<T extends LinkBuilder>WebHandler.PreparedWebHandler<T extends LinkBuilder>