@Singleton public class ReadEndpointRouteBuilder extends DefaultRouteBuilder
RouteBuilder.UriNamingStrategy
CAMEL_CASE_NAMING_STRATEGY, conversionService, defaultCharset, executionHandleLocator, LOG, uriNamingStrategy
ID
Constructor and Description |
---|
ReadEndpointRouteBuilder(ApplicationContext beanContext,
RouteBuilder.UriNamingStrategy uriNamingStrategy,
ConversionService<?> conversionService,
EndpointDefaultConfiguration endpointDefaultConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected UriTemplate |
buildUriTemplate(ExecutableMethod<?,?> method,
java.lang.String id) |
protected java.lang.Class<? extends java.lang.annotation.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,
java.lang.String id,
java.lang.Integer port)
Register a route.
|
protected java.util.Optional<java.lang.String> |
resolveActiveEndPointId(java.lang.Class<?> declaringType) |
addFilter, addFilter, buildBeanRoute, buildRoute, buildRoute, DELETE, DELETE, DELETE, error, error, GET, GET, GET, getErrorRoutes, getExposedPorts, 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 ReadEndpointRouteBuilder(ApplicationContext beanContext, RouteBuilder.UriNamingStrategy uriNamingStrategy, ConversionService<?> conversionService, EndpointDefaultConfiguration endpointDefaultConfiguration)
beanContext
- The application contexturiNamingStrategy
- The URI naming strategyconversionService
- The conversion serviceendpointDefaultConfiguration
- Endpoints default Configurationprotected java.lang.Class<? extends java.lang.annotation.Annotation> getSupportedAnnotation()
protected void registerRoute(ExecutableMethod<?,?> method, java.lang.String id, java.lang.Integer port)
method
- The ExecutableMethod
id
- The route idport
- The portpublic 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 java.util.Optional<java.lang.String> resolveActiveEndPointId(java.lang.Class<?> declaringType)
declaringType
- The typeprotected UriTemplate buildUriTemplate(ExecutableMethod<?,?> method, java.lang.String id)
method
- The ExecutableMethod
id
- The route idUriTemplate