@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(java.lang.String pathPattern,
BeanLocator beanLocator,
BeanDefinition<? extends HttpFilter> beanDefinition)
Add a filter.
|
FilterRoute |
addFilter(java.lang.String pathPattern,
java.util.function.Supplier<HttpFilter> filter)
Add a filter.
|
default UriRoute |
DELETE(java.lang.Class type)
Route to the specified class.
|
default UriRoute |
DELETE(java.lang.Class type,
PropertyConvention id)
Route to the specified class and ID.
|
default UriRoute |
DELETE(java.lang.Object target)
Route to the specified object.
|
default UriRoute |
DELETE(java.lang.Object target,
PropertyConvention id)
Route to the specified object and ID.
|
default UriRoute |
DELETE(java.lang.String uri,
BeanDefinition<?> beanDefinition,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
UriRoute |
DELETE(java.lang.String uri,
java.lang.Class type,
java.lang.String method,
java.lang.Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
DELETE(java.lang.String uri,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
default UriRoute |
DELETE(java.lang.String uri,
java.lang.Object target)
Route the specified URI to the specified target for an HTTP DELETE.
|
UriRoute |
DELETE(java.lang.String uri,
java.lang.Object target,
java.lang.String method,
java.lang.Class... parameterTypes)
Route the specified URI template to the specified target.
|
default ErrorRoute |
error(java.lang.Class<? extends java.lang.Throwable> error,
java.lang.Class type)
Register a route to handle the error.
|
ErrorRoute |
error(java.lang.Class<? extends java.lang.Throwable> error,
java.lang.Class type,
java.lang.String method,
java.lang.Class... parameterTypes)
Register a route to handle the error.
|
default ErrorRoute |
error(java.lang.Class<? extends java.lang.Throwable> error,
java.lang.Object instance)
Register a route to handle the error.
|
default ErrorRoute |
error(java.lang.Class<? extends java.lang.Throwable> error,
java.lang.Object instance,
java.lang.String method)
Register a route to handle the error.
|
default ErrorRoute |
error(java.lang.Class<? extends java.lang.Throwable> error,
java.lang.Object instance,
java.lang.String method,
java.lang.Class... parameterTypes)
Register a route to handle the error.
|
ErrorRoute |
error(java.lang.Class originatingClass,
java.lang.Class<? extends java.lang.Throwable> error,
java.lang.Class type,
java.lang.String method,
java.lang.Class... parameterTypes)
Register a route to handle the error.
|
default UriRoute |
GET(java.lang.Class type)
Route to the specified class.
|
default UriRoute |
GET(java.lang.Class type,
PropertyConvention id)
Route to the specified class and ID.
|
default UriRoute |
GET(java.lang.Object target)
Route to the specified object.
|
default UriRoute |
GET(java.lang.Object target,
PropertyConvention id)
Route to the specified object and ID.
|
default UriRoute |
GET(java.lang.String uri,
BeanDefinition<?> beanDefinition,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
UriRoute |
GET(java.lang.String uri,
java.lang.Class<?> type,
java.lang.String method,
java.lang.Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
GET(java.lang.String uri,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
default UriRoute |
GET(java.lang.String uri,
java.lang.Object target)
Route the specified URI to the specified target for an HTTP GET.
|
UriRoute |
GET(java.lang.String uri,
java.lang.Object target,
java.lang.String method,
java.lang.Class... parameterTypes)
Route the specified URI template to the specified target.
|
java.util.List<ErrorRoute> |
getErrorRoutes() |
java.util.Set<java.lang.Integer> |
getExposedPorts() |
java.util.List<FilterRoute> |
getFilterRoutes() |
java.util.List<StatusRoute> |
getStatusRoutes() |
RouteBuilder.UriNamingStrategy |
getUriNamingStrategy() |
java.util.List<UriRoute> |
getUriRoutes() |
default UriRoute |
HEAD(java.lang.Class type)
Route to the specified class.
|
default UriRoute |
HEAD(java.lang.Class type,
PropertyConvention id)
Route to the specified class and ID.
|
default UriRoute |
HEAD(java.lang.Object target)
Route to the specified object.
|
default UriRoute |
HEAD(java.lang.Object target,
PropertyConvention id)
Route to the specified object and ID.
|
default UriRoute |
HEAD(java.lang.String uri,
BeanDefinition<?> beanDefinition,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
UriRoute |
HEAD(java.lang.String uri,
java.lang.Class type,
java.lang.String method,
java.lang.Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
HEAD(java.lang.String uri,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
default UriRoute |
HEAD(java.lang.String uri,
java.lang.Object target)
Route the specified URI to the specified target for an HTTP GET.
|
UriRoute |
HEAD(java.lang.String uri,
java.lang.Object target,
java.lang.String method,
java.lang.Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
OPTIONS(java.lang.Class type)
Route to the specified class.
|
default UriRoute |
OPTIONS(java.lang.Class type,
PropertyConvention id)
Route to the specified class and ID.
|
default UriRoute |
OPTIONS(java.lang.Object target)
Route to the specified object.
|
default UriRoute |
OPTIONS(java.lang.Object target,
PropertyConvention id)
Route to the specified object and ID.
|
default UriRoute |
OPTIONS(java.lang.String uri,
BeanDefinition<?> beanDefinition,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
UriRoute |
OPTIONS(java.lang.String uri,
java.lang.Class type,
java.lang.String method,
java.lang.Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
OPTIONS(java.lang.String uri,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
default UriRoute |
OPTIONS(java.lang.String uri,
java.lang.Object target)
Route the specified URI to the specified target for an HTTP OPTIONS.
|
UriRoute |
OPTIONS(java.lang.String uri,
java.lang.Object target,
java.lang.String method,
java.lang.Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
PATCH(java.lang.Class type)
Route to the specified class.
|
default UriRoute |
PATCH(java.lang.Class type,
PropertyConvention id)
Route to the specified class and ID.
|
default UriRoute |
PATCH(java.lang.Object target)
Route to the specified object.
|
default UriRoute |
PATCH(java.lang.Object target,
PropertyConvention id)
Route to the specified object and ID.
|
default UriRoute |
PATCH(java.lang.String uri,
BeanDefinition<?> beanDefinition,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
UriRoute |
PATCH(java.lang.String uri,
java.lang.Class type,
java.lang.String method,
java.lang.Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
PATCH(java.lang.String uri,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
default UriRoute |
PATCH(java.lang.String uri,
java.lang.Object target)
Route the specified URI to the specified target for an HTTP PATCH.
|
UriRoute |
PATCH(java.lang.String uri,
java.lang.Object target,
java.lang.String method,
java.lang.Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
POST(java.lang.Class type)
Route to the specified class.
|
default UriRoute |
POST(java.lang.Class type,
PropertyConvention id)
Route to the specified class and ID.
|
default UriRoute |
POST(java.lang.Object target)
Route to the specified object.
|
default UriRoute |
POST(java.lang.Object target,
PropertyConvention id)
Route to the specified object and ID.
|
default UriRoute |
POST(java.lang.String uri,
BeanDefinition<?> beanDefinition,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
UriRoute |
POST(java.lang.String uri,
java.lang.Class type,
java.lang.String method,
java.lang.Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
POST(java.lang.String uri,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
default UriRoute |
POST(java.lang.String uri,
java.lang.Object target,
java.lang.Class... parameterTypes)
Route the specified URI to the specified target for an HTTP POST.
|
UriRoute |
POST(java.lang.String uri,
java.lang.Object target,
java.lang.String method,
java.lang.Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
PUT(java.lang.Class type)
Route to the specified class.
|
default UriRoute |
PUT(java.lang.Class type,
PropertyConvention id)
Route to the specified class and ID.
|
default UriRoute |
PUT(java.lang.Object target)
Route to the specified object.
|
default UriRoute |
PUT(java.lang.Object target,
PropertyConvention id)
Route to the specified object and ID.
|
default UriRoute |
PUT(java.lang.String uri,
BeanDefinition<?> beanDefinition,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
UriRoute |
PUT(java.lang.String uri,
java.lang.Class type,
java.lang.String method,
java.lang.Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
PUT(java.lang.String uri,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
default UriRoute |
PUT(java.lang.String uri,
java.lang.Object target)
Route the specified URI to the specified target for an HTTP PUT.
|
UriRoute |
PUT(java.lang.String uri,
java.lang.Object target,
java.lang.String method,
java.lang.Class... parameterTypes)
Route the specified URI template to the specified target.
|
ResourceRoute |
resources(java.lang.Class cls)
Builds the necessary mappings to treat the given class as a REST endpoint.
|
default ResourceRoute |
resources(java.lang.Object instance)
Builds the necessary mappings to treat the given instance as a REST endpoint.
|
ResourceRoute |
single(java.lang.Class cls)
Builds the necessary mappings to treat the given class as a singular REST endpoint.
|
default ResourceRoute |
single(java.lang.Object instance)
Builds the necessary mappings to treat the given instance as a singular REST endpoint.
|
StatusRoute |
status(java.lang.Class originatingClass,
HttpStatus status,
java.lang.Class type,
java.lang.String method,
java.lang.Class... parameterTypes)
Register a route to handle the returned status code.
|
StatusRoute |
status(HttpStatus status,
java.lang.Class type,
java.lang.String method,
java.lang.Class... parameterTypes)
Register a route to handle the returned status code.
|
default StatusRoute |
status(HttpStatus status,
java.lang.Object instance,
java.lang.String method)
Register a route to handle the returned status code.
|
default UriRoute |
TRACE(java.lang.Class type)
Route to the specified class.
|
default UriRoute |
TRACE(java.lang.Class type,
PropertyConvention id)
Route to the specified class and ID.
|
default UriRoute |
TRACE(java.lang.Object target)
Route to the specified object.
|
default UriRoute |
TRACE(java.lang.Object target,
PropertyConvention id)
Route to the specified object and ID.
|
default UriRoute |
TRACE(java.lang.String uri,
BeanDefinition<?> beanDefinition,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
UriRoute |
TRACE(java.lang.String uri,
java.lang.Class type,
java.lang.String method,
java.lang.Class... parameterTypes)
Route the specified URI template to the specified target.
|
default UriRoute |
TRACE(java.lang.String uri,
ExecutableMethod<?,?> method)
Route the specified URI template to the specified target.
|
default UriRoute |
TRACE(java.lang.String uri,
java.lang.Object target)
Route the specified URI to the specified target for an HTTP GET.
|
UriRoute |
TRACE(java.lang.String uri,
java.lang.Object target,
java.lang.String method,
java.lang.Class... parameterTypes)
Route the specified URI template to the specified target.
|
static final PropertyConvention ID
java.util.Set<java.lang.Integer> getExposedPorts()
java.util.List<FilterRoute> getFilterRoutes()
java.util.List<UriRoute> getUriRoutes()
java.util.List<StatusRoute> getStatusRoutes()
java.util.List<ErrorRoute> getErrorRoutes()
RouteBuilder.UriNamingStrategy getUriNamingStrategy()
FilterRoute addFilter(java.lang.String pathPattern, java.util.function.Supplier<HttpFilter> filter)
pathPattern
- The path pattern for the filterfilter
- The filter itselfFilterRoute
FilterRoute addFilter(java.lang.String pathPattern, BeanLocator beanLocator, BeanDefinition<? extends HttpFilter> beanDefinition)
pathPattern
- The path pattern for the filterbeanLocator
- The bean locatorbeanDefinition
- The bean definitionFilterRoute
ResourceRoute resources(java.lang.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(java.lang.Object instance)
Builds the necessary mappings to treat the given instance as a REST endpoint.
instance
- The instanceResourceRoute
resources(Class)
ResourceRoute single(java.lang.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(java.lang.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, java.lang.Object instance, java.lang.String method)
status
- The status codeinstance
- The instancemethod
- The methodStatusRoute status(HttpStatus status, java.lang.Class type, java.lang.String method, java.lang.Class... parameterTypes)
status
- The status codetype
- The typemethod
- The methodparameterTypes
- The parameter types for the target methodStatusRoute status(java.lang.Class originatingClass, HttpStatus status, java.lang.Class type, java.lang.String method, java.lang.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(java.lang.Class<? extends java.lang.Throwable> error, java.lang.Class type, java.lang.String method, java.lang.Class... parameterTypes)
error
- The errortype
- The typemethod
- The methodparameterTypes
- The parameter types for the target methodErrorRoute error(java.lang.Class originatingClass, java.lang.Class<? extends java.lang.Throwable> error, java.lang.Class type, java.lang.String method, java.lang.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(java.lang.Class<? extends java.lang.Throwable> error, java.lang.Class type)
error
- The errortype
- The typedefault ErrorRoute error(java.lang.Class<? extends java.lang.Throwable> error, java.lang.Object instance)
error
- The errorinstance
- The instancedefault ErrorRoute error(java.lang.Class<? extends java.lang.Throwable> error, java.lang.Object instance, java.lang.String method)
error
- The errorinstance
- The instancemethod
- The methoddefault ErrorRoute error(java.lang.Class<? extends java.lang.Throwable> error, java.lang.Object instance, java.lang.String method, java.lang.Class... parameterTypes)
error
- The errorinstance
- The instancemethod
- The methodparameterTypes
- The parameter typesdefault UriRoute GET(java.lang.String uri, java.lang.Object target)
uri
- The URItarget
- The target objectdefault UriRoute GET(java.lang.Object target)
Route to the specified object. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectdefault UriRoute GET(java.lang.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(java.lang.Class type)
Route to the specified class. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classdefault UriRoute GET(java.lang.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(java.lang.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(java.lang.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(java.lang.String uri, java.lang.Object target, java.lang.String method, java.lang.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(java.lang.String uri, java.lang.Class<?> type, java.lang.String method, java.lang.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(java.lang.String uri, java.lang.Object target, java.lang.Class... parameterTypes)
uri
- The URItarget
- The target objectparameterTypes
- The parameter types for the target methoddefault UriRoute POST(java.lang.Object target)
Route to the specified object. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectdefault UriRoute POST(java.lang.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(java.lang.Class type)
Route to the specified class. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classdefault UriRoute POST(java.lang.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(java.lang.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(java.lang.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(java.lang.String uri, java.lang.Object target, java.lang.String method, java.lang.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(java.lang.String uri, java.lang.Class type, java.lang.String method, java.lang.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(java.lang.String uri, java.lang.Object target)
uri
- The URItarget
- The target objectdefault UriRoute PUT(java.lang.Object target)
Route to the specified object. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectdefault UriRoute PUT(java.lang.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(java.lang.Class type)
Route to the specified class. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classdefault UriRoute PUT(java.lang.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(java.lang.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(java.lang.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(java.lang.String uri, java.lang.Object target, java.lang.String method, java.lang.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(java.lang.String uri, java.lang.Class type, java.lang.String method, java.lang.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(java.lang.String uri, java.lang.Object target)
uri
- The URItarget
- The target objectdefault UriRoute PATCH(java.lang.Object target)
Route to the specified object. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectdefault UriRoute PATCH(java.lang.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(java.lang.Class type)
Route to the specified class. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classdefault UriRoute PATCH(java.lang.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(java.lang.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(java.lang.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(java.lang.String uri, java.lang.Object target, java.lang.String method, java.lang.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(java.lang.String uri, java.lang.Class type, java.lang.String method, java.lang.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(java.lang.String uri, java.lang.Object target)
uri
- The URItarget
- The target objectdefault UriRoute DELETE(java.lang.Object target)
Route to the specified object. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectdefault UriRoute DELETE(java.lang.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(java.lang.Class type)
Route to the specified class. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classdefault UriRoute DELETE(java.lang.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(java.lang.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(java.lang.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(java.lang.String uri, java.lang.Object target, java.lang.String method, java.lang.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(java.lang.String uri, java.lang.Class type, java.lang.String method, java.lang.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(java.lang.String uri, java.lang.Object target)
uri
- The URItarget
- The target objectdefault UriRoute OPTIONS(java.lang.Object target)
Route to the specified object. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectdefault UriRoute OPTIONS(java.lang.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(java.lang.Class type)
Route to the specified class. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classdefault UriRoute OPTIONS(java.lang.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(java.lang.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(java.lang.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(java.lang.String uri, java.lang.Object target, java.lang.String method, java.lang.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(java.lang.String uri, java.lang.Class type, java.lang.String method, java.lang.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(java.lang.String uri, java.lang.Object target)
uri
- The URItarget
- The target objectdefault UriRoute HEAD(java.lang.Object target)
Route to the specified object. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectdefault UriRoute HEAD(java.lang.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(java.lang.Class type)
Route to the specified class. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classdefault UriRoute HEAD(java.lang.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(java.lang.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(java.lang.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(java.lang.String uri, java.lang.Object target, java.lang.String method, java.lang.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(java.lang.String uri, java.lang.Class type, java.lang.String method, java.lang.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(java.lang.String uri, java.lang.Object target)
uri
- The URItarget
- The target objectdefault UriRoute TRACE(java.lang.Object target)
Route to the specified object. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
target
- The objectdefault UriRoute TRACE(java.lang.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(java.lang.Class type)
Route to the specified class. The URI route is built by the configured RouteBuilder.UriNamingStrategy
.
type
- The classdefault UriRoute TRACE(java.lang.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(java.lang.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(java.lang.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(java.lang.String uri, java.lang.Object target, java.lang.String method, java.lang.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(java.lang.String uri, java.lang.Class type, java.lang.String method, java.lang.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