Package | Description |
---|---|
org.springframework.hateoas |
Value objects to ease creating
Link s and link driven representations for REST webservices. |
org.springframework.hateoas.core |
Implementations of core API interfaces.
|
org.springframework.hateoas.jaxrs |
LinkBuilder implementations to consider JAX-RS annotations. |
org.springframework.hateoas.mvc |
Spring MVC helper classes to build
Link s and assemble
ResourceSupport 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.linkForSingleResource(Class<?> type,
Object id)
Returns a
LinkBuilder able to create links to the controller managing the given entity type and id. |
LinkBuilder |
EntityLinks.linkForSingleResource(Identifiable<?> entity)
Returns a
LinkBuilder able to create links to the controller managing the given entity. |
LinkBuilder |
LinkBuilder.slash(Identifiable<?> identifiable)
Adds the given
Identifiable 's id as sub-resource. |
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 . |
Modifier and Type | Class and Description |
---|---|
class |
LinkBuilderSupport<T extends LinkBuilder>
Base class to implement
LinkBuilder s based on a Spring MVC UriComponentsBuilder . |
Modifier and Type | Method and Description |
---|---|
LinkBuilder |
DelegatingEntityLinks.linkFor(Class<?> type) |
LinkBuilder |
ControllerEntityLinks.linkFor(Class<?> entity) |
LinkBuilder |
DelegatingEntityLinks.linkFor(Class<?> type,
Object... parameters) |
LinkBuilder |
ControllerEntityLinks.linkFor(Class<?> entity,
Object... parameters) |
LinkBuilder |
AbstractEntityLinks.linkForSingleResource(Class<?> type,
Object id) |
LinkBuilder |
AbstractEntityLinks.linkForSingleResource(Identifiable<?> entity) |
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 |
JaxRsLinkBuilder
LinkBuilder to derive URI mappings from a JAX-RS Path annotation. |
Modifier and Type | Class and Description |
---|---|
class |
BasicLinkBuilder
Simples
LinkBuilder implementation possible. |
class |
ControllerLinkBuilder
Builder to ease building
Link instances pointing to Spring MVC controllers. |
Copyright © 2012-2016–2018 Pivotal, Inc.. All rights reserved.