|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.hateoas.mvc.ControllerLinkBuilder
public class ControllerLinkBuilder
Builder to ease building Link instances pointing to Spring MVC controllers.
| Method Summary | |
|---|---|
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)
|
ControllerLinkBuilder |
slash(Identifiable<?> identifyable)
Adds the given AbstractEntity's id as sub-resource. |
ControllerLinkBuilder |
slash(Object object)
Adds the given object's String representation as sub-resource to the current URI. |
String |
toString()
|
URI |
toUri()
Returns a URI resulting from the uriComponents. |
Link |
withRel(String rel)
|
Link |
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 -
public static ControllerLinkBuilder linkTo(Class<?> controller,
Object... parameters)
public ControllerLinkBuilder slash(Object object)
String representation as sub-resource to the current URI.
object -
public ControllerLinkBuilder slash(Identifiable<?> identifyable)
AbstractEntity's id as sub-resource. Will simply return the current uriComponents if the
given entity is null.
identifyable -
public URI toUri()
public Link withRel(String rel)
public Link withSelfRel()
public String toString()
toString in class Object
|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||