@Component(value="vertx-http")
public class VertxHttpComponent
extends org.apache.camel.support.HeaderFilterStrategyComponent
implements org.apache.camel.spi.RestProducerFactory, org.apache.camel.SSLContextParametersAware
| Constructor and Description |
|---|
VertxHttpComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters) |
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 void |
doInit() |
protected void |
doStart() |
protected void |
doStop() |
String |
getBasicAuthPassword() |
String |
getBasicAuthUsername() |
String |
getBearerToken() |
String |
getProxyHost() |
String |
getProxyPassword() |
Integer |
getProxyPort() |
io.vertx.core.net.ProxyType |
getProxyType() |
String |
getProxyUsername() |
org.apache.camel.support.jsse.SSLContextParameters |
getSslContextParameters()
To configure security using SSLContextParameters
|
io.vertx.core.Vertx |
getVertx() |
VertxHttpBinding |
getVertxHttpBinding() |
io.vertx.core.VertxOptions |
getVertxOptions() |
boolean |
isAllowJavaSerializedObject() |
boolean |
isUseGlobalSslContextParameters() |
void |
setAllowJavaSerializedObject(boolean allowJavaSerializedObject)
Whether to allow java serialization when a request has the Content-Type application/x-java-serialized-object
This is disabled by default.
|
void |
setBasicAuthPassword(String basicAuthPassword)
The password to use for basic authentication
|
void |
setBasicAuthUsername(String basicAuthUsername)
The user name to use for basic authentication
|
void |
setBearerToken(String bearerToken)
The bearer token to use for bearer token authentication
|
void |
setProxyHost(String proxyHost)
The proxy server host address
|
void |
setProxyPassword(String proxyPassword)
The proxy server password if authentication is required
|
void |
setProxyPort(Integer proxyPort)
The proxy server port
|
void |
setProxyType(io.vertx.core.net.ProxyType proxyType)
The proxy server type
|
void |
setProxyUsername(String proxyUsername)
The proxy server username if authentication is required
|
void |
setSslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters) |
void |
setUseGlobalSslContextParameters(boolean useGlobalSslContextParameters)
Enable usage of global SSL context parameters
|
void |
setVertx(io.vertx.core.Vertx vertx)
To use an existing vertx instead of creating a new instance
|
void |
setVertxHttpBinding(VertxHttpBinding vertxHttpBinding)
A custom VertxHttpBinding which can control how to bind between Vert.x and Camel
|
void |
setVertxOptions(io.vertx.core.VertxOptions vertxOptions)
To provide a custom set of vertx options for configuring vertx
|
getHeaderFilterStrategy, setEndpointHeaderFilterStrategy, setHeaderFilterStrategyafterConfiguration, createEndpoint, createEndpoint, doBuild, 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, trySetCamelContextprotected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
createEndpoint in class org.apache.camel.support.DefaultComponentExceptionpublic 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.DefaultComponentExceptionprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.DefaultComponentExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.DefaultComponentExceptionpublic io.vertx.core.Vertx getVertx()
public void setVertx(io.vertx.core.Vertx vertx)
public io.vertx.core.VertxOptions getVertxOptions()
public void setVertxOptions(io.vertx.core.VertxOptions vertxOptions)
public VertxHttpBinding getVertxHttpBinding()
public void setVertxHttpBinding(VertxHttpBinding vertxHttpBinding)
public boolean isUseGlobalSslContextParameters()
isUseGlobalSslContextParameters in interface org.apache.camel.SSLContextParametersAwarepublic void setUseGlobalSslContextParameters(boolean useGlobalSslContextParameters)
setUseGlobalSslContextParameters in interface org.apache.camel.SSLContextParametersAwarepublic boolean isAllowJavaSerializedObject()
public void setAllowJavaSerializedObject(boolean allowJavaSerializedObject)
public void setProxyHost(String proxyHost)
public String getProxyHost()
public void setProxyPort(Integer proxyPort)
public Integer getProxyPort()
public void setProxyUsername(String proxyUsername)
public String getProxyUsername()
public void setProxyPassword(String proxyPassword)
public String getProxyPassword()
public void setProxyType(io.vertx.core.net.ProxyType proxyType)
public io.vertx.core.net.ProxyType getProxyType()
public void setBasicAuthUsername(String basicAuthUsername)
public String getBasicAuthUsername()
public void setBasicAuthPassword(String basicAuthPassword)
public String getBasicAuthPassword()
public void setBearerToken(String bearerToken)
public String getBearerToken()
public org.apache.camel.support.jsse.SSLContextParameters getSslContextParameters()
public void setSslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)
Apache Camel