|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.hateoas.core.LinkBuilderSupport<JaxRsLinkBuilder>
org.springframework.hateoas.jaxrs.JaxRsLinkBuilder
public class JaxRsLinkBuilder
LinkBuilder to derive URI mappings from a JAX-RS Path annotation.
| Method Summary | |
|---|---|
protected JaxRsLinkBuilder |
createNewInstance(UriComponentsBuilder builder)
Creates a new instance of the sub-class. |
protected JaxRsLinkBuilder |
getThis()
Returns the current concrete instance. |
static JaxRsLinkBuilder |
linkTo(Class<?> service)
Creates a JaxRsLinkBuilder instance to link to the Path mapping tied to the given class. |
static JaxRsLinkBuilder |
linkTo(Class<?> service,
Object... parameters)
Creates a new JaxRsLinkBuilder instance to link to the Path mapping tied to the given class binding
the given parameters to the URI template. |
| Methods inherited from class org.springframework.hateoas.core.LinkBuilderSupport |
|---|
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 JaxRsLinkBuilder linkTo(Class<?> service)
JaxRsLinkBuilder instance to link to the Path mapping tied to the given class.
service - the class to discover the annotation on, must not be null.
public static JaxRsLinkBuilder linkTo(Class<?> service,
Object... parameters)
JaxRsLinkBuilder instance to link to the Path mapping tied to the given class binding
the given parameters to the URI template.
service - 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 JaxRsLinkBuilder getThis()
LinkBuilderSupport
getThis in class LinkBuilderSupport<JaxRsLinkBuilder>protected JaxRsLinkBuilder createNewInstance(UriComponentsBuilder builder)
LinkBuilderSupport
createNewInstance in class LinkBuilderSupport<JaxRsLinkBuilder>builder - will never be null.
|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||