public class JaxRsLinkBuilderFactory extends Object implements LinkBuilderFactory<JaxRsLinkBuilder>
LinkBuilder
instances based on the path mapping annotated on the given JAX-RS service.Constructor and Description |
---|
JaxRsLinkBuilderFactory() |
Modifier and Type | Method and Description |
---|---|
JaxRsLinkBuilder |
linkTo(Class<?> service)
Creates a new
LinkBuilder with a base of the mapping annotated to the given target class (controller,
service, etc.). |
JaxRsLinkBuilder |
linkTo(Class<?> service,
Map<String,?> parameters)
Creates a new
LinkBuilder with a base of the mapping annotated to the given target class (controller,
service, etc.). |
JaxRsLinkBuilder |
linkTo(Class<?> service,
Object... parameters)
Creates a new
LinkBuilder with a base of the mapping annotated to the given target class (controller,
service, etc.). |
public JaxRsLinkBuilder linkTo(Class<?> service)
LinkBuilderFactory
LinkBuilder
with a base of the mapping annotated to the given target class (controller,
service, etc.).linkTo
in interface LinkBuilderFactory<JaxRsLinkBuilder>
service
- must not be null.public JaxRsLinkBuilder linkTo(Class<?> service, Object... parameters)
LinkBuilderFactory
LinkBuilder
with a base of the mapping annotated to the given target class (controller,
service, etc.). The additional parameters are used to fill up potentially available path variables in the class
scope request mapping.linkTo
in interface LinkBuilderFactory<JaxRsLinkBuilder>
service
- must not be null.parameters
- must not be null.public JaxRsLinkBuilder linkTo(Class<?> service, Map<String,?> parameters)
LinkBuilderFactory
LinkBuilder
with a base of the mapping annotated to the given target class (controller,
service, etc.). Parameter map is used to fill up potentially available path variables in the class scope request
mapping.linkTo
in interface LinkBuilderFactory<JaxRsLinkBuilder>
service
- must not be null.parameters
- must not be null.Copyright © 2012-2016–2018 Pivotal, Inc.. All rights reserved.