public class MvcLink extends Object
Link
instances from MvcUriComponentsBuilder
invocations.Constructor and Description |
---|
MvcLink() |
Modifier and Type | Method and Description |
---|---|
static Link |
of(Object invocation)
Creates a new
Link from the given MvcUriComponentsBuilder invocation defaulting to the
IanaLinkRelations.SELF link relation. |
static Link |
of(Object invocation,
LinkRelation relation)
Creates a new
Link from the given MvcUriComponentsBuilder invocation. |
static Link |
of(Supplier<Object> invocation)
Creates a new
Link from the given lazy MvcUriComponentsBuilder invocation defaulting to the
IanaLinkRelations.SELF link relation. |
static Link |
of(Supplier<Object> invocation,
LinkRelation relation)
Creates a new
Link from the given lazy MvcUriComponentsBuilder invocation. |
static <T> T |
on(Class<T> controller)
Syntactic sugar for
MvcUriComponentsBuilder.on(Class) to avoid the additional static import. |
public static Link of(Object invocation)
Link
from the given MvcUriComponentsBuilder
invocation defaulting to the
IanaLinkRelations.SELF
link relation.invocation
- must not be null.public static Link of(Supplier<Object> invocation)
Link
from the given lazy MvcUriComponentsBuilder
invocation defaulting to the
IanaLinkRelations.SELF
link relation.invocation
- must not be null.public static Link of(Object invocation, LinkRelation relation)
Link
from the given MvcUriComponentsBuilder
invocation.invocation
- must not be null.relation
- must not be null.public static Link of(Supplier<Object> invocation, LinkRelation relation)
Link
from the given lazy MvcUriComponentsBuilder
invocation.invocation
- must not be null.relation
- must not be null.public static <T> T on(Class<T> controller)
MvcUriComponentsBuilder.on(Class)
to avoid the additional static import.controller
- must not be null.Copyright © 2011–2021 Pivotal, Inc.. All rights reserved.