org.apache.camel.component.undertow.UndertowComponent Java Examples
The following examples show how to use
org.apache.camel.component.undertow.UndertowComponent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UndertowComponentAutoConfiguration.java From camel-spring-boot with Apache License 2.0 | 5 votes |
@Lazy @Bean(name = "undertow-component") @ConditionalOnMissingBean(UndertowComponent.class) public UndertowComponent configureUndertowComponent() throws Exception { UndertowComponent component = new UndertowComponent(); component.setCamelContext(camelContext); Map<String, Object> parameters = new HashMap<>(); IntrospectionSupport.getProperties(configuration, parameters, null, false); CamelPropertiesHelper.setCamelProperties(camelContext, component, parameters, false); if (ObjectHelper.isNotEmpty(customizers)) { for (ComponentCustomizer<UndertowComponent> customizer : customizers) { boolean useCustomizer = (customizer instanceof HasId) ? HierarchicalPropertiesEvaluator.evaluate( applicationContext.getEnvironment(), "camel.component.customizer", "camel.component.undertow.customizer", ((HasId) customizer).getId()) : HierarchicalPropertiesEvaluator.evaluate( applicationContext.getEnvironment(), "camel.component.customizer", "camel.component.undertow.customizer"); if (useCustomizer) { LOGGER.debug("Configure component {}, with customizer {}", component, customizer); customizer.customize(component); } } } return component; }
Example #2
Source File: WildFlyUndertowComponent.java From wildfly-camel with Apache License 2.0 | 4 votes |
@Override protected UndertowEndpoint createEndpointInstance(URI endpointUri, UndertowComponent component) throws URISyntaxException { return new WildFlyUndertowEndpoint(endpointUri.toString(), component); }
Example #3
Source File: WildFlyUndertowComponent.java From wildfly-camel with Apache License 2.0 | 4 votes |
WildFlyUndertowEndpoint(String uri, UndertowComponent component) throws URISyntaxException { super(uri, component); }
Example #4
Source File: UndertowKeycloakComponent.java From keycloak with Apache License 2.0 | 4 votes |
@Override protected UndertowEndpoint createEndpointInstance(URI endpointUri, UndertowComponent component) throws URISyntaxException { return new UndertowKeycloakEndpoint(endpointUri.toString(), component); }
Example #5
Source File: UndertowKeycloakEndpoint.java From keycloak with Apache License 2.0 | 4 votes |
public UndertowKeycloakEndpoint(String uri, UndertowComponent component) { super(uri, component); }