@Metadata(label="verifiers",
enums="parameters,connectivity")
@Component(value="undertow")
public class UndertowComponent
extends org.apache.camel.support.DefaultComponent
implements org.apache.camel.spi.RestConsumerFactory, org.apache.camel.spi.RestApiConsumerFactory, org.apache.camel.spi.RestProducerFactory, org.apache.camel.SSLContextParametersAware
UndertowEndpoint.| Constructor and Description |
|---|
UndertowComponent() |
UndertowComponent(org.apache.camel.CamelContext context) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createApiConsumer(org.apache.camel.CamelContext camelContext,
org.apache.camel.Processor processor,
String contextPath,
org.apache.camel.spi.RestConfiguration configuration,
Map<String,Object> parameters) |
org.apache.camel.Consumer |
createConsumer(org.apache.camel.CamelContext camelContext,
org.apache.camel.Processor processor,
String verb,
String basePath,
String uriTemplate,
String consumes,
String produces,
org.apache.camel.spi.RestConfiguration configuration,
Map<String,Object> parameters) |
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters) |
protected UndertowEndpoint |
createEndpointInstance(URI endpointUri,
UndertowComponent component) |
org.apache.camel.Producer |
createProducer(org.apache.camel.CamelContext camelContext,
String host,
String verb,
String basePath,
String uriTemplate,
String queryParameters,
String consumes,
String produces,
org.apache.camel.spi.RestConfiguration configuration,
Map<String,Object> parameters) |
protected UndertowHost |
createUndertowHost(UndertowHostKey key) |
protected void |
doInit() |
String |
getAllowedRoles() |
protected String |
getComponentName() |
Set<HttpHandlerRegistrationInfo> |
getHandlers() |
UndertowHostOptions |
getHostOptions() |
Object |
getSecurityConfiguration() |
UndertowSecurityProvider |
getSecurityProvider() |
org.apache.camel.support.jsse.SSLContextParameters |
getSslContextParameters() |
UndertowHttpBinding |
getUndertowHttpBinding() |
org.apache.camel.component.extension.ComponentVerifierExtension |
getVerifier() |
boolean |
isMuteException() |
boolean |
isUseGlobalSslContextParameters() |
io.undertow.server.HttpHandler |
registerEndpoint(UndertowConsumer consumer,
HttpHandlerRegistrationInfo registrationInfo,
SSLContext sslContext,
io.undertow.server.HttpHandler handler) |
void |
setAllowedRoles(String allowedRoles)
Configuration used by UndertowSecurityProvider.
|
void |
setHostOptions(UndertowHostOptions hostOptions)
To configure common options, such as thread pools
|
void |
setMuteException(boolean muteException)
If enabled and an Exchange failed processing on the consumer side the response's body won't contain the
exception's stack trace.
|
void |
setSecurityConfiguration(Object securityConfiguration)
Configuration used by UndertowSecurityProvider.
|
void |
setSecurityProvider(UndertowSecurityProvider securityProvider)
Security provider allows plug in the provider, which will be used to secure requests.
|
void |
setSslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)
To configure security using SSLContextParameters
|
void |
setUndertowHttpBinding(UndertowHttpBinding undertowHttpBinding)
To use a custom HttpBinding to control the mapping between Camel message and HttpClient.
|
void |
setUseGlobalSslContextParameters(boolean useGlobalSslContextParameters)
Enable usage of global SSL context parameters.
|
void |
unregisterEndpoint(UndertowConsumer consumer,
HttpHandlerRegistrationInfo registrationInfo,
SSLContext sslContext) |
afterConfiguration, createEndpoint, createEndpoint, doBuild, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, resolveRawParameterValues, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURIbuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitretrieveGlobalSslContextParametersgetCamelContext, setCamelContext, trySetCamelContextpublic UndertowComponent()
public UndertowComponent(org.apache.camel.CamelContext context)
protected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
createEndpoint in class org.apache.camel.support.DefaultComponentExceptionprotected UndertowEndpoint createEndpointInstance(URI endpointUri, UndertowComponent component) throws URISyntaxException
URISyntaxExceptionpublic org.apache.camel.Consumer createConsumer(org.apache.camel.CamelContext camelContext,
org.apache.camel.Processor processor,
String verb,
String basePath,
String uriTemplate,
String consumes,
String produces,
org.apache.camel.spi.RestConfiguration configuration,
Map<String,Object> parameters)
throws Exception
createConsumer in interface org.apache.camel.spi.RestConsumerFactoryExceptionpublic org.apache.camel.Consumer createApiConsumer(org.apache.camel.CamelContext camelContext,
org.apache.camel.Processor processor,
String contextPath,
org.apache.camel.spi.RestConfiguration configuration,
Map<String,Object> parameters)
throws Exception
createApiConsumer in interface org.apache.camel.spi.RestApiConsumerFactoryExceptionpublic org.apache.camel.Producer createProducer(org.apache.camel.CamelContext camelContext,
String host,
String verb,
String basePath,
String uriTemplate,
String queryParameters,
String consumes,
String produces,
org.apache.camel.spi.RestConfiguration configuration,
Map<String,Object> parameters)
throws Exception
createProducer in interface org.apache.camel.spi.RestProducerFactoryExceptionprotected void doInit()
throws Exception
doInit in class org.apache.camel.support.DefaultComponentExceptionpublic io.undertow.server.HttpHandler registerEndpoint(UndertowConsumer consumer, HttpHandlerRegistrationInfo registrationInfo, SSLContext sslContext, io.undertow.server.HttpHandler handler) throws Exception
Exceptionpublic void unregisterEndpoint(UndertowConsumer consumer, HttpHandlerRegistrationInfo registrationInfo, SSLContext sslContext)
protected UndertowHost createUndertowHost(UndertowHostKey key)
public UndertowHttpBinding getUndertowHttpBinding()
public void setUndertowHttpBinding(UndertowHttpBinding undertowHttpBinding)
public org.apache.camel.support.jsse.SSLContextParameters getSslContextParameters()
public void setSslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)
public boolean isUseGlobalSslContextParameters()
isUseGlobalSslContextParameters in interface org.apache.camel.SSLContextParametersAwarepublic void setUseGlobalSslContextParameters(boolean useGlobalSslContextParameters)
setUseGlobalSslContextParameters in interface org.apache.camel.SSLContextParametersAwarepublic UndertowHostOptions getHostOptions()
public void setHostOptions(UndertowHostOptions hostOptions)
public boolean isMuteException()
public void setMuteException(boolean muteException)
public org.apache.camel.component.extension.ComponentVerifierExtension getVerifier()
protected String getComponentName()
public Set<HttpHandlerRegistrationInfo> getHandlers()
public Object getSecurityConfiguration()
public void setSecurityConfiguration(Object securityConfiguration)
public String getAllowedRoles()
public void setAllowedRoles(String allowedRoles)
public void setSecurityProvider(UndertowSecurityProvider securityProvider)
public UndertowSecurityProvider getSecurityProvider()
Apache Camel