@Indexed(value=RouteBuilder.class) public interface RouteBuilder
An interface for classes capable of building HTTP routing information.
Modifier and Type | Interface and Description |
---|---|
static interface |
RouteBuilder.UriNamingStrategy
A URI naming strategy is used to dictate the default name to use when building a URI for a class.
|
Modifier and Type | Field and Description |
---|---|
static PropertyConvention |
ID
Used to signify to the route that the ID of the resource is used.
|
Modifier and Type | Method and Description |
---|---|
FilterRoute |
addFilter(String pathPattern,
Supplier<HttpFilter> filter)
Add a filter.
|
default UriRoute |
DELETE(Class type)
Route to the specified class.
|
default UriRoute |
DELETE(Class type,
PropertyConvention id)
Route to the specified class and ID.
|
default UriRoute |
DELETE(Object target)
Route to the specified object.
|
default UriRoute |
DELETE(Object target,
PropertyConvention id)
Route to the specified object and ID.
|
default UriRoute |
DELETE(String uri,
BeanDefinition<?> beanDefinition,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
UriRoute |
DELETE(String uri,
Class type,
String method,
Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
DELETE(String uri,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
default UriRoute |
DELETE(String uri,
Object target)
Route the specified URI to the specified target for an HTTP DELETE.
|
UriRoute |
DELETE(String uri,
Object target,
String method,
Class... parameterTypes)
Route the specified URI template to the specified target.
|
default ErrorRoute |
error(Class<? extends Throwable> error,
Class type)
Register a route to handle the error.
|
ErrorRoute |
error(Class<? extends Throwable> error,
Class type,
String method,
Class... parameterTypes)
Register a route to handle the error.
|
default ErrorRoute |
error(Class<? extends Throwable> error,
Object instance)
Register a route to handle the error.
|
default ErrorRoute |
error(Class<? extends Throwable> error,
Object instance,
String method)
Register a route to handle the error.
|
default ErrorRoute |
error(Class<? extends Throwable> error,
Object instance,
String method,
Class... parameterTypes)
Register a route to handle the error.
|
ErrorRoute |
error(Class originatingClass,
Class<? extends Throwable> error,
Class type,
String method,
Class... parameterTypes)
Register a route to handle the error.
|
default UriRoute |
GET(Class type)
Route to the specified class.
|
default UriRoute |
GET(Class type,
PropertyConvention id)
Route to the specified class and ID.
|
default UriRoute |
GET(Object target)
Route to the specified object.
|
default UriRoute |
GET(Object target,
PropertyConvention id)
Route to the specified object and ID.
|
default UriRoute |
GET(String uri,
BeanDefinition<?> beanDefinition,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
UriRoute |
GET(String uri,
Class<?> type,
String method,
Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
GET(String uri,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
default UriRoute |
GET(String uri,
Object target)
Route the specified URI to the specified target for an HTTP GET.
|
UriRoute |
GET(String uri,
Object target,
String method,
Class... parameterTypes)
Route the specified URI template to the specified target.
|
List<ErrorRoute> |
getErrorRoutes() |
List<FilterRoute> |
getFilterRoutes() |
List<StatusRoute> |
getStatusRoutes() |
RouteBuilder.UriNamingStrategy |
getUriNamingStrategy() |
List<UriRoute> |
getUriRoutes() |
default UriRoute |
HEAD(Class type)
Route to the specified class.
|
default UriRoute |
HEAD(Class type,
PropertyConvention id)
Route to the specified class and ID.
|
default UriRoute |
HEAD(Object target)
Route to the specified object.
|
default UriRoute |
HEAD(Object target,
PropertyConvention id)
Route to the specified object and ID.
|
default UriRoute |
HEAD(String uri,
BeanDefinition<?> beanDefinition,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
UriRoute |
HEAD(String uri,
Class type,
String method,
Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
HEAD(String uri,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
default UriRoute |
HEAD(String uri,
Object target)
Route the specified URI to the specified target for an HTTP GET.
|
UriRoute |
HEAD(String uri,
Object target,
String method,
Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
OPTIONS(Class type)
Route to the specified class.
|
default UriRoute |
OPTIONS(Class type,
PropertyConvention id)
Route to the specified class and ID.
|
default UriRoute |
OPTIONS(Object target)
Route to the specified object.
|
default UriRoute |
OPTIONS(Object target,
PropertyConvention id)
Route to the specified object and ID.
|
default UriRoute |
OPTIONS(String uri,
BeanDefinition<?> beanDefinition,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
UriRoute |
OPTIONS(String uri,
Class type,
String method,
Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
OPTIONS(String uri,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
default UriRoute |
OPTIONS(String uri,
Object target)
Route the specified URI to the specified target for an HTTP OPTIONS.
|
UriRoute |
OPTIONS(String uri,
Object target,
String method,
Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
PATCH(Class type)
Route to the specified class.
|
default UriRoute |
PATCH(Class type,
PropertyConvention id)
Route to the specified class and ID.
|
default UriRoute |
PATCH(Object target)
Route to the specified object.
|
default UriRoute |
PATCH(Object target,
PropertyConvention id)
Route to the specified object and ID.
|
default UriRoute |
PATCH(String uri,
BeanDefinition<?> beanDefinition,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
UriRoute |
PATCH(String uri,
Class type,
String method,
Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
PATCH(String uri,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
default UriRoute |
PATCH(String uri,
Object target)
Route the specified URI to the specified target for an HTTP PATCH.
|
UriRoute |
PATCH(String uri,
Object target,
String method,
Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
POST(Class type)
Route to the specified class.
|
default UriRoute |
POST(Class type,
PropertyConvention id)
Route to the specified class and ID.
|
default UriRoute |
POST(Object target)
Route to the specified object.
|
default UriRoute |
POST(Object target,
PropertyConvention id)
Route to the specified object and ID.
|
default UriRoute |
POST(String uri,
BeanDefinition<?> beanDefinition,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
UriRoute |
POST(String uri,
Class type,
String method,
Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
POST(String uri,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
default UriRoute |
POST(String uri,
Object target,
Class... parameterTypes)
Route the specified URI to the specified target for an HTTP POST.
|
UriRoute |
POST(String uri,
Object target,
String method,
Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
PUT(Class type)
Route to the specified class.
|
default UriRoute |
PUT(Class type,
PropertyConvention id)
Route to the specified class and ID.
|
default UriRoute |
PUT(Object target)
Route to the specified object.
|
default UriRoute |
PUT(Object target,
PropertyConvention id)
Route to the specified object and ID.
|
default UriRoute |
PUT(String uri,
BeanDefinition<?> beanDefinition,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
UriRoute |
PUT(String uri,
Class type,
String method,
Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
PUT(String uri,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
default UriRoute |
PUT(String uri,
Object target)
Route the specified URI to the specified target for an HTTP PUT.
|
UriRoute |
PUT(String uri,
Object target,
String method,
Class... parameterTypes)
Route the specified URI template to the specified target.
|
ResourceRoute |
resources(Class cls)
Builds the necessary mappings to treat the given class as a REST endpoint.
|
default ResourceRoute |
resources(Object instance)
Builds the necessary mappings to treat the given instance as a REST endpoint.
|
ResourceRoute |
single(Class cls)
Builds the necessary mappings to treat the given class as a singular REST endpoint.
|
default ResourceRoute |
single(Object instance)
Builds the necessary mappings to treat the given instance as a singular REST endpoint.
|
StatusRoute |
status(Class originatingClass,
HttpStatus status,
Class type,
String method,
Class... parameterTypes)
Register a route to handle the returned status code.
|
StatusRoute |
status(HttpStatus status,
Class type,
String method,
Class... parameterTypes)
Register a route to handle the returned status code.
|
default StatusRoute |
status(HttpStatus status,
Object instance,
String method)
Register a route to handle the returned status code.
|
default UriRoute |
TRACE(Class type)
Route to the specified class.
|
default UriRoute |
TRACE(Class type,
PropertyConvention id)
Route to the specified class and ID.
|
default UriRoute |
TRACE(Object target)
Route to the specified object.
|
default UriRoute |
TRACE(Object target,
PropertyConvention id)
Route to the specified object and ID.
|
default UriRoute |
TRACE(String uri,
BeanDefinition<?> beanDefinition,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
UriRoute |
TRACE(String uri,
Class type,
String method,
Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
TRACE(String uri,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
default UriRoute |
TRACE(String uri,
Object target)
Route the specified URI to the specified target for an HTTP GET.
|
UriRoute |
TRACE(String uri,
Object target,
String method,
Class... parameterTypes)
Route the specified URI template to the specified target.
|
static final PropertyConvention ID
List<FilterRoute> getFilterRoutes()
List<StatusRoute> getStatusRoutes()
List<ErrorRoute> getErrorRoutes()
RouteBuilder.UriNamingStrategy getUriNamingStrategy()
FilterRoute addFilter(String pathPattern, Supplier<HttpFilter> filter)
pathPattern
- The path pattern for the filterfilter
- The filter itselfFilterRoute
ResourceRoute resources(Class cls)
Builds the necessary mappings to treat the given class as a REST endpoint.
For example given a class called BookController the following routes will be produced:
GET "/book"
GET "/book{/id}"
POST "/book"
PUT "/book{/id}"
PATCH "/book{/id}"
DELETE "/book{/id}"
By default it is assumed the accepted and returned content type is
MediaType.APPLICATION_JSON_TYPE
.
cls
- The classResourceRoute
default ResourceRoute resources(Object instance)
Builds the necessary mappings to treat the given instance as a REST endpoint.
instance
- The instanceResourceRoute
resources(Class)
ResourceRoute single(Class cls)
Builds the necessary mappings to treat the given class as a singular REST endpoint.
For example given a class called BookController the following routes will be produced:
GET "/book"
POST "/book"
PUT "/book"
PATCH "/book"
DELETE "/book"
By default it is assumed the accepted and returned content type is
MediaType.APPLICATION_JSON_TYPE
.
cls
- The classResourceRoute
default ResourceRoute single(Object instance)
Builds the necessary mappings to treat the given instance as a singular REST endpoint.
instance
- The instanceResourceRoute
single(Class)
default StatusRoute status(HttpStatus status, Object instance, String method)
status
- The status codeinstance
- The instancemethod
- The methodStatusRoute status(HttpStatus status, Class type, String method, Class... parameterTypes)
status
- The status codetype
- The typemethod
- The methodparameterTypes
- The parameter types for the target methodStatusRoute status(Class originatingClass, HttpStatus status, Class type, String method, Class... parameterTypes)
originatingClass
- The class where the error originates fromstatus
- The status codetype
- The typemethod
- The methodparameterTypes
- The parameter types for the target methodErrorRoute error(Class<? extends Throwable> error, Class type, String method, Class... parameterTypes)
error
- The errortype
- The typemethod
- The methodparameterTypes
- The parameter types for the target methodErrorRoute error(Class originatingClass, Class<? extends Throwable> error, Class type, String method, Class... parameterTypes)
originatingClass
- The class where the error originates fromerror
- The error typetype
- The type to route tomethod
- The method THe method to route toparameterTypes
- The parameter types for the target methoddefault ErrorRoute error(Class<? extends Throwable> error, Class type)
error
- The errortype
- The typedefault ErrorRoute error(Class<? extends Throwable> error, Object instance)
error
- The errorinstance
- The instancedefault ErrorRoute error(Class<? extends Throwable> error, Object instance, String method)
error
- The errorinstance
- The instancemethod
- The methoddefault ErrorRoute error(Class<? extends Throwable> error, Object instance, String method, Class... parameterTypes)
error
- The errorinstance
- The instancemethod
- The methodparameterTypes
- The parameter typesdefault UriRoute GET(String uri, Object target)
uri
- The URItarget
- The target objectdefault UriRoute GET(Object target)
Route to the specified object. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectdefault UriRoute GET(Object target, PropertyConvention id)
Route to the specified object and ID. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectid
- The route iddefault UriRoute GET(Class type)
Route to the specified class. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classdefault UriRoute GET(Class type, PropertyConvention id)
Route to the specified class and ID. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classid
- The route iddefault UriRoute GET(String uri, ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
uri
- The URImethod
- The methoddefault UriRoute GET(String uri, BeanDefinition<?> beanDefinition, ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
beanDefinition
- The bean definitionuri
- The URImethod
- The methodUriRoute GET(String uri, Object target, String method, Class... parameterTypes)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
uri
- The URItarget
- The targetmethod
- The methodparameterTypes
- The parameter types for the target methodUriRoute GET(String uri, Class<?> type, String method, Class... parameterTypes)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
uri
- The URItype
- The typemethod
- The methodparameterTypes
- The parameter types for the target methoddefault UriRoute POST(String uri, Object target, Class... parameterTypes)
uri
- The URItarget
- The target objectparameterTypes
- The parameter types for the target methoddefault UriRoute POST(Object target)
Route to the specified object. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectdefault UriRoute POST(Object target, PropertyConvention id)
Route to the specified object and ID. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectid
- The route iddefault UriRoute POST(Class type)
Route to the specified class. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classdefault UriRoute POST(Class type, PropertyConvention id)
Route to the specified class and ID. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classid
- The route iddefault UriRoute POST(String uri, ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
uri
- The URImethod
- The methoddefault UriRoute POST(String uri, BeanDefinition<?> beanDefinition, ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
beanDefinition
- The bean definitionuri
- The URImethod
- The methodUriRoute POST(String uri, Object target, String method, Class... parameterTypes)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
uri
- The URItarget
- The targetmethod
- The methodparameterTypes
- The parameter types for the target methodUriRoute POST(String uri, Class type, String method, Class... parameterTypes)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
uri
- The URItype
- The typemethod
- The methodparameterTypes
- The parameter types for the target methoddefault UriRoute PUT(String uri, Object target)
uri
- The URItarget
- The target objectdefault UriRoute PUT(Object target)
Route to the specified object. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectdefault UriRoute PUT(Object target, PropertyConvention id)
Route to the specified object and ID. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectid
- The route iddefault UriRoute PUT(Class type)
Route to the specified class. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classdefault UriRoute PUT(Class type, PropertyConvention id)
Route to the specified class and ID. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classid
- The route iddefault UriRoute PUT(String uri, ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
uri
- The URImethod
- The methoddefault UriRoute PUT(String uri, BeanDefinition<?> beanDefinition, ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
beanDefinition
- The bean definitionuri
- The URImethod
- The methodUriRoute PUT(String uri, Object target, String method, Class... parameterTypes)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
uri
- The URItarget
- The targetmethod
- The methodparameterTypes
- The parameter types for the target methodUriRoute PUT(String uri, Class type, String method, Class... parameterTypes)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
uri
- The URItype
- The typemethod
- The methodparameterTypes
- The parameter types for the target methoddefault UriRoute PATCH(String uri, Object target)
uri
- The URItarget
- The target objectdefault UriRoute PATCH(Object target)
Route to the specified object. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectdefault UriRoute PATCH(Object target, PropertyConvention id)
Route to the specified object and ID. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectid
- The route iddefault UriRoute PATCH(Class type)
Route to the specified class. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classdefault UriRoute PATCH(Class type, PropertyConvention id)
Route to the specified class and ID. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classid
- The route iddefault UriRoute PATCH(String uri, ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
uri
- The URImethod
- The methoddefault UriRoute PATCH(String uri, BeanDefinition<?> beanDefinition, ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
beanDefinition
- The bean definitionuri
- The URImethod
- The methodUriRoute PATCH(String uri, Object target, String method, Class... parameterTypes)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
uri
- The URItarget
- The targetmethod
- The methodparameterTypes
- The parameter types for the target methodUriRoute PATCH(String uri, Class type, String method, Class... parameterTypes)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
uri
- The URItype
- The typemethod
- The methodparameterTypes
- The parameter types for the target methoddefault UriRoute DELETE(String uri, Object target)
uri
- The URItarget
- The target objectdefault UriRoute DELETE(Object target)
Route to the specified object. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectdefault UriRoute DELETE(Object target, PropertyConvention id)
Route to the specified object and ID. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectid
- The route iddefault UriRoute DELETE(Class type)
Route to the specified class. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classdefault UriRoute DELETE(Class type, PropertyConvention id)
Route to the specified class and ID. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classid
- The route iddefault UriRoute DELETE(String uri, ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
uri
- The URImethod
- The methoddefault UriRoute DELETE(String uri, BeanDefinition<?> beanDefinition, ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
beanDefinition
- The bean definitionuri
- The URImethod
- The methodUriRoute DELETE(String uri, Object target, String method, Class... parameterTypes)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
uri
- The URItarget
- The targetmethod
- The methodparameterTypes
- The parameter types for the target methodUriRoute DELETE(String uri, Class type, String method, Class... parameterTypes)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
uri
- The URItype
- The typemethod
- The methodparameterTypes
- The parameter types for the target methoddefault UriRoute OPTIONS(String uri, Object target)
uri
- The URItarget
- The target objectdefault UriRoute OPTIONS(Object target)
Route to the specified object. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectdefault UriRoute OPTIONS(Object target, PropertyConvention id)
Route to the specified object and ID. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectid
- The route iddefault UriRoute OPTIONS(Class type)
Route to the specified class. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classdefault UriRoute OPTIONS(Class type, PropertyConvention id)
Route to the specified class and ID. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classid
- The route iddefault UriRoute OPTIONS(String uri, ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
uri
- The URImethod
- The methoddefault UriRoute OPTIONS(String uri, BeanDefinition<?> beanDefinition, ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
beanDefinition
- The bean definitionuri
- The URImethod
- The methodUriRoute OPTIONS(String uri, Object target, String method, Class... parameterTypes)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
uri
- The URItarget
- The targetmethod
- The methodparameterTypes
- The parameter types for the target methodUriRoute OPTIONS(String uri, Class type, String method, Class... parameterTypes)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
uri
- The URItype
- The typemethod
- The methodparameterTypes
- The parameter types for the target methoddefault UriRoute HEAD(String uri, Object target)
uri
- The URItarget
- The target objectdefault UriRoute HEAD(Object target)
Route to the specified object. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectdefault UriRoute HEAD(Object target, PropertyConvention id)
Route to the specified object and ID. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectid
- The route iddefault UriRoute HEAD(Class type)
Route to the specified class. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classdefault UriRoute HEAD(Class type, PropertyConvention id)
Route to the specified class and ID. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classid
- The route iddefault UriRoute HEAD(String uri, ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
uri
- The URImethod
- The methoddefault UriRoute HEAD(String uri, BeanDefinition<?> beanDefinition, ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
beanDefinition
- The bean definitionuri
- The URImethod
- The methodUriRoute HEAD(String uri, Object target, String method, Class... parameterTypes)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
uri
- The URItarget
- The targetmethod
- The methodparameterTypes
- The parameter types for the target methodUriRoute HEAD(String uri, Class type, String method, Class... parameterTypes)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
uri
- The URItype
- The typemethod
- The methodparameterTypes
- The parameter types for the target methoddefault UriRoute TRACE(String uri, Object target)
uri
- The URItarget
- The target objectdefault UriRoute TRACE(Object target)
Route to the specified object. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectdefault UriRoute TRACE(Object target, PropertyConvention id)
Route to the specified object and ID. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectid
- The route iddefault UriRoute TRACE(Class type)
Route to the specified class. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classdefault UriRoute TRACE(Class type, PropertyConvention id)
Route to the specified class and ID. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classid
- The route iddefault UriRoute TRACE(String uri, ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments.
uri
- The URImethod
- The methoddefault UriRoute TRACE(String uri, BeanDefinition<?> beanDefinition, ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
beanDefinition
- The bean definitionuri
- The URImethod
- The methodUriRoute TRACE(String uri, Object target, String method, Class... parameterTypes)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
uri
- The URItarget
- The targetmethod
- The methodparameterTypes
- The parameter types for the target methodUriRoute TRACE(String uri, Class type, String method, Class... parameterTypes)
Route the specified URI template to the specified target.
The number of variables in the template should match the number of method arguments
uri
- The URItype
- The typemethod
- The methodparameterTypes
- The parameter types for the target method