public class JaxRsLinkBuilder extends LinkBuilderSupport<JaxRsLinkBuilder>
LinkBuilder
to derive URI mappings from a JAX-RS Path
annotation.Modifier and Type | Method and Description |
---|---|
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. |
slash, slash, toString, toUri, withRel, withSelfRel
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.Copyright © 2012-2015–2015 Pivotal, Inc.. All rights reserved.