Package | Description |
---|---|
org.springframework.hateoas.server |
Server-side components for hypermedia handling.
|
org.springframework.hateoas.server.core |
Implementations of core API interfaces.
|
org.springframework.hateoas.server.mvc |
Spring MVC helper classes to build
Link s and assemble
RepresentationModel types. |
org.springframework.hateoas.server.reactive |
Spring WebFlux components to build
Link s and assemble
RepresentationModel types. |
Modifier and Type | Interface and Description |
---|---|
interface |
LinkBuilderFactory<T extends LinkBuilder>
Factory for
LinkBuilder instances. |
interface |
MethodLinkBuilderFactory<T extends LinkBuilder>
Extension of
LinkBuilderFactory for implementations that also support creating LinkBuilder s by
pointing to a method. |
Modifier and Type | Method and Description |
---|---|
LinkBuilder |
EntityLinks.linkFor(Class<?> type)
Returns a
LinkBuilder able to create links to the controller managing the given entity type. |
LinkBuilder |
EntityLinks.linkFor(Class<?> type,
Object... parameters)
Returns a
LinkBuilder able to create links to the controller managing the given entity type, unfolding the
given parameters into the URI template the backing controller is mapped to. |
LinkBuilder |
EntityLinks.linkForItemResource(Class<?> type,
Object id)
Returns a
LinkBuilder able to create links to the controller managing the given entity type and id. |
LinkBuilder |
TypedEntityLinks.linkForItemResource(T entity)
Returns a
LinkBuilder able to create links to the controller managing the given entity. |
default <T> LinkBuilder |
EntityLinks.linkForItemResource(T entity,
Function<T,Object> identifierExtractor)
Returns a
LinkBuilder able to create links to the controller managing the given entity type and identifier
extractor. |
LinkBuilder |
LinkBuilder.slash(Object object)
Adds the given object's
String representation as sub-resource to the current URI. |
Modifier and Type | Class and Description |
---|---|
class |
LinkBuilderSupport<T extends LinkBuilder>
Base class to implement
LinkBuilder s based on a Spring MVC UriComponentsBuilder . |
static interface |
WebHandler.LinkBuilderCreator<T extends LinkBuilder> |
static interface |
WebHandler.PreparedWebHandler<T extends LinkBuilder> |
Modifier and Type | Class and Description |
---|---|
class |
LinkBuilderSupport<T extends LinkBuilder>
Base class to implement
LinkBuilder s based on a Spring MVC UriComponentsBuilder . |
class |
TemplateVariableAwareLinkBuilderSupport<T extends TemplateVariableAwareLinkBuilderSupport<T>>
A
LinkBuilderSupport extension that can keep a list of TemplateVariables around. |
Modifier and Type | Method and Description |
---|---|
static <T extends LinkBuilder> |
WebHandler.linkTo(Object invocationValue,
WebHandler.LinkBuilderCreator<T> creator) |
static <T extends LinkBuilder> |
WebHandler.linkTo(Object invocationValue,
WebHandler.LinkBuilderCreator<T> creator,
BiFunction<UriComponentsBuilder,MethodInvocation,UriComponentsBuilder> additionalUriHandler,
Function<String,UriComponentsBuilder> finisher) |
Modifier and Type | Method and Description |
---|---|
LinkBuilder |
ControllerEntityLinks.linkFor(Class<?> entity) |
LinkBuilder |
DelegatingEntityLinks.linkFor(Class<?> type) |
LinkBuilder |
ControllerEntityLinks.linkFor(Class<?> entity,
Object... parameters) |
LinkBuilder |
DelegatingEntityLinks.linkFor(Class<?> type,
Object... parameters) |
LinkBuilder |
AbstractEntityLinks.linkForItemResource(Class<?> type,
Object id) |
Modifier and Type | Method and Description |
---|---|
void |
ControllerEntityLinksFactoryBean.setLinkBuilderFactory(LinkBuilderFactory<? extends LinkBuilder> linkBuilderFactory)
Configures the
LinkBuilderFactory to be used to create LinkBuilder instances. |
Constructor and Description |
---|
ControllerEntityLinks(Iterable<? extends Class<?>> controllerTypes,
LinkBuilderFactory<? extends LinkBuilder> linkBuilderFactory)
Creates a new
ControllerEntityLinks inspecting the configured classes for the given annotation. |
Modifier and Type | Class and Description |
---|---|
class |
BasicLinkBuilder
Simples
LinkBuilder implementation possible. |
class |
ControllerLinkBuilder
Deprecated.
use
WebMvcLinkBuilder instead. |
class |
WebMvcLinkBuilder
Builder to ease building
Link instances pointing to Spring MVC controllers. |
Modifier and Type | Class and Description |
---|---|
class |
WebFluxLinkBuilder
Utility for building reactive
Link s. |
Copyright © 2011–2020 Pivotal, Inc.. All rights reserved.