@Singleton public class WriteEndpointRouteBuilder extends DefaultRouteBuilder
RouteBuilder.UriNamingStrategy
CAMEL_CASE_NAMING_STRATEGY, conversionService, defaultCharset, executionHandleLocator, HYPHENATED_NAMING_STRATEGY, LOG, uriNamingStrategy
ID
Constructor and Description |
---|
WriteEndpointRouteBuilder(ApplicationContext beanContext,
RouteBuilder.UriNamingStrategy uriNamingStrategy,
ConversionService<?> conversionService,
EndpointDefaultConfiguration endpointDefaultConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected UriTemplate |
buildUriTemplate(ExecutableMethod<?,?> method,
String id) |
protected Class<? extends Annotation> |
getSupportedAnnotation() |
protected boolean |
isPathParameter(Argument argument) |
void |
onComplete()
Clears endpoint ids information.
|
void |
process(BeanDefinition<?> beanDefinition,
ExecutableMethod<?,?> method)
The process method will be called for every
ExecutableMethod that is annotated with the type parameter A. |
protected void |
registerRoute(ExecutableMethod<?,?> method,
String id)
Register a route.
|
protected Optional<String> |
resolveActiveEndPointId(Class<?> declaringType) |
addFilter, buildRoute, DELETE, DELETE, DELETE, error, error, GET, GET, GET, getErrorRoutes, getFilterRoutes, getStatusRoutes, getUriNamingStrategy, getUriRoutes, HEAD, HEAD, HEAD, OPTIONS, OPTIONS, OPTIONS, PATCH, PATCH, PATCH, POST, POST, POST, PUT, PUT, PUT, resources, single, status, status, TRACE, TRACE, TRACE
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
DELETE, DELETE, DELETE, DELETE, DELETE, DELETE, error, error, error, error, GET, GET, GET, GET, GET, GET, HEAD, HEAD, HEAD, HEAD, HEAD, HEAD, OPTIONS, OPTIONS, OPTIONS, OPTIONS, OPTIONS, OPTIONS, PATCH, PATCH, PATCH, PATCH, PATCH, PATCH, POST, POST, POST, POST, POST, POST, PUT, PUT, PUT, PUT, PUT, PUT, resources, single, status, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE
public WriteEndpointRouteBuilder(ApplicationContext beanContext, RouteBuilder.UriNamingStrategy uriNamingStrategy, ConversionService<?> conversionService, EndpointDefaultConfiguration endpointDefaultConfiguration)
beanContext
- The application contexturiNamingStrategy
- The URI naming strategyconversionService
- The conversion serviceendpointDefaultConfiguration
- Endpoints default Configurationprotected Class<? extends Annotation> getSupportedAnnotation()
protected void registerRoute(ExecutableMethod<?,?> method, String id)
method
- The ExecutableMethod
id
- The route idprotected boolean isPathParameter(Argument argument)
argument
- An Argument
public final void onComplete()
onComplete
in interface Completable
Subscriber.onComplete()
public void process(BeanDefinition<?> beanDefinition, ExecutableMethod<?,?> method)
ExecutableMethodProcessor
ExecutableMethod
that is annotated with the type parameter A.process
in interface AnnotationProcessor<Endpoint,ExecutableMethod<?,?>>
process
in interface ExecutableMethodProcessor<Endpoint>
beanDefinition
- The bean definition to processmethod
- The executable methodprotected Optional<String> resolveActiveEndPointId(Class<?> declaringType)
declaringType
- The typeprotected UriTemplate buildUriTemplate(ExecutableMethod<?,?> method, String id)
method
- The ExecutableMethod
id
- The route idUriTemplate