|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.hateoas.mvc.UriComponentsLinkBuilder<ControllerLinkBuilder>
org.springframework.hateoas.mvc.ControllerLinkBuilder
public class ControllerLinkBuilder
Builder to ease building Link instances pointing to Spring MVC controllers.
| Method Summary | |
|---|---|
protected ControllerLinkBuilder |
createNewInstance(UriComponentsBuilder builder)
Creates a new instance of the sub-class. |
protected ControllerLinkBuilder |
getThis()
Returns the current concrete instance. |
static ControllerLinkBuilder |
linkTo(Class<?> controller)
Creates a new ControllerLinkBuilder with a base of the mapping annotated to the given controller class. |
static ControllerLinkBuilder |
linkTo(Class<?> controller,
Object... parameters)
Creates a new ControllerLinkBuilder with a base of the mapping annotated to the given controller class. |
| Methods inherited from class org.springframework.hateoas.mvc.UriComponentsLinkBuilder |
|---|
slash, slash, toString, toUri, withRel, withSelfRel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static ControllerLinkBuilder linkTo(Class<?> controller)
ControllerLinkBuilder with a base of the mapping annotated to the given controller class.
controller - the class to discover the annotation on, must not be null.
public static ControllerLinkBuilder linkTo(Class<?> controller,
Object... parameters)
ControllerLinkBuilder with a base of the mapping annotated to the given controller class. The
additional parameters are used to fill up potentially available path variables in the class scop request mapping.
controller - the class to discover the annotation on, must not be null.parameters - additional parameters to bind to the URI template declared in the annotation, must not be
null.
protected ControllerLinkBuilder getThis()
UriComponentsLinkBuilder
getThis in class UriComponentsLinkBuilder<ControllerLinkBuilder>protected ControllerLinkBuilder createNewInstance(UriComponentsBuilder builder)
UriComponentsLinkBuilder
createNewInstance in class UriComponentsLinkBuilder<ControllerLinkBuilder>builder - will never be null.
|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||