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<?> resourceType,
Map<String,?> 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. |
static JaxRsLinkBuilder |
linkTo(Class<?> resourceType,
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, 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<?> resourceType, Object... parameters)
JaxRsLinkBuilder
instance to link to the Path
mapping tied to the given class binding
the given parameters to the URI template.resourceType
- 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.public static JaxRsLinkBuilder linkTo(Class<?> resourceType, Map<String,?> parameters)
JaxRsLinkBuilder
instance to link to the Path
mapping tied to the given class binding
the given parameters to the URI template.resourceType
- the class to discover the annotation on, must not be null.parameters
- map of 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-2016–2018 Pivotal, Inc.. All rights reserved.