Interface JettyComponentBuilderFactory.JettyComponentBuilder
-
- All Superinterfaces:
ComponentBuilder<org.apache.camel.component.jetty9.JettyHttpComponent9>
- All Known Implementing Classes:
JettyComponentBuilderFactory.JettyComponentBuilderImpl
- Enclosing interface:
- JettyComponentBuilderFactory
public static interface JettyComponentBuilderFactory.JettyComponentBuilder extends ComponentBuilder<org.apache.camel.component.jetty9.JettyHttpComponent9>
Builder for the Jetty component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default JettyComponentBuilderFactory.JettyComponentBuilder
allowJavaSerializedObject(boolean allowJavaSerializedObject)
Whether to allow java serialization when a request uses context-type=application/x-java-serialized-object.default JettyComponentBuilderFactory.JettyComponentBuilder
autowiredEnabled(boolean autowiredEnabled)
Whether autowiring is enabled.default JettyComponentBuilderFactory.JettyComponentBuilder
bridgeErrorHandler(boolean bridgeErrorHandler)
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler.default JettyComponentBuilderFactory.JettyComponentBuilder
continuationTimeout(Long continuationTimeout)
Allows to set a timeout in millis when using Jetty as consumer (server).default JettyComponentBuilderFactory.JettyComponentBuilder
enableJmx(boolean enableJmx)
If this option is true, Jetty JMX support will be enabled for this endpoint.default JettyComponentBuilderFactory.JettyComponentBuilder
errorHandler(org.eclipse.jetty.server.handler.ErrorHandler errorHandler)
This option is used to set the ErrorHandler that Jetty server uses.default JettyComponentBuilderFactory.JettyComponentBuilder
headerFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
To use a custom org.apache.camel.spi.HeaderFilterStrategy to filter header to and from Camel message.default JettyComponentBuilderFactory.JettyComponentBuilder
httpBinding(org.apache.camel.http.common.HttpBinding httpBinding)
Not to be used - use JettyHttpBinding instead.default JettyComponentBuilderFactory.JettyComponentBuilder
httpConfiguration(org.apache.camel.http.common.HttpConfiguration httpConfiguration)
Jetty component does not use HttpConfiguration.default JettyComponentBuilderFactory.JettyComponentBuilder
jettyHttpBinding(org.apache.camel.component.jetty.JettyHttpBinding jettyHttpBinding)
To use a custom org.apache.camel.component.jetty.JettyHttpBinding, which are used to customize how a response should be written for the producer.default JettyComponentBuilderFactory.JettyComponentBuilder
keystore(String keystore)
Specifies the location of the Java keystore file, which contains the Jetty server's own X.509 certificate in a key entry.default JettyComponentBuilderFactory.JettyComponentBuilder
maxThreads(Integer maxThreads)
To set a value for maximum number of threads in server thread pool.default JettyComponentBuilderFactory.JettyComponentBuilder
mbContainer(org.eclipse.jetty.jmx.MBeanContainer mbContainer)
To use a existing configured org.eclipse.jetty.jmx.MBeanContainer if JMX is enabled that Jetty uses for registering mbeans.default JettyComponentBuilderFactory.JettyComponentBuilder
minThreads(Integer minThreads)
To set a value for minimum number of threads in server thread pool.default JettyComponentBuilderFactory.JettyComponentBuilder
proxyHost(String proxyHost)
To use a http proxy to configure the hostname.default JettyComponentBuilderFactory.JettyComponentBuilder
proxyPort(Integer proxyPort)
To use a http proxy to configure the port number.default JettyComponentBuilderFactory.JettyComponentBuilder
requestBufferSize(Integer requestBufferSize)
Allows to configure a custom value of the request buffer size on the Jetty connectors.default JettyComponentBuilderFactory.JettyComponentBuilder
requestHeaderSize(Integer requestHeaderSize)
Allows to configure a custom value of the request header size on the Jetty connectors.default JettyComponentBuilderFactory.JettyComponentBuilder
responseBufferSize(Integer responseBufferSize)
Allows to configure a custom value of the response buffer size on the Jetty connectors.default JettyComponentBuilderFactory.JettyComponentBuilder
responseHeaderSize(Integer responseHeaderSize)
Allows to configure a custom value of the response header size on the Jetty connectors.default JettyComponentBuilderFactory.JettyComponentBuilder
sendServerVersion(boolean sendServerVersion)
If the option is true, jetty will send the server header with the jetty version information to the client which sends the request.default JettyComponentBuilderFactory.JettyComponentBuilder
socketConnectorProperties(Map<String,Object> socketConnectorProperties)
A map which contains general HTTP connector properties.default JettyComponentBuilderFactory.JettyComponentBuilder
socketConnectors(Map<Integer,org.eclipse.jetty.server.Connector> socketConnectors)
A map which contains per port number specific HTTP connectors.default JettyComponentBuilderFactory.JettyComponentBuilder
sslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)
To configure security using SSLContextParameters.default JettyComponentBuilderFactory.JettyComponentBuilder
sslKeyPassword(String sslKeyPassword)
The key password, which is used to access the certificate's key entry in the keystore (this is the same password that is supplied to the keystore command's -keypass option).default JettyComponentBuilderFactory.JettyComponentBuilder
sslPassword(String sslPassword)
The ssl password, which is required to access the keystore file (this is the same password that is supplied to the keystore command's -storepass option).default JettyComponentBuilderFactory.JettyComponentBuilder
sslSocketConnectorProperties(Map<String,Object> sslSocketConnectorProperties)
A map which contains general SSL connector properties.default JettyComponentBuilderFactory.JettyComponentBuilder
sslSocketConnectors(Map<Integer,org.eclipse.jetty.server.Connector> sslSocketConnectors)
A map which contains per port number specific SSL connectors.default JettyComponentBuilderFactory.JettyComponentBuilder
threadPool(org.eclipse.jetty.util.thread.ThreadPool threadPool)
To use a custom thread pool for the server.default JettyComponentBuilderFactory.JettyComponentBuilder
useContinuation(boolean useContinuation)
Whether or not to use Jetty continuations for the Jetty Server.default JettyComponentBuilderFactory.JettyComponentBuilder
useGlobalSslContextParameters(boolean useGlobalSslContextParameters)
Enable usage of global SSL context parameters.default JettyComponentBuilderFactory.JettyComponentBuilder
useXForwardedForHeader(boolean useXForwardedForHeader)
To use the X-Forwarded-For header in HttpServletRequest.getRemoteAddr.-
Methods inherited from interface org.apache.camel.builder.component.ComponentBuilder
build, build, doSetProperty, register
-
-
-
-
Method Detail
-
bridgeErrorHandler
default JettyComponentBuilderFactory.JettyComponentBuilder bridgeErrorHandler(boolean bridgeErrorHandler)
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option is a:boolean
type. Default: false Group: consumer
-
continuationTimeout
default JettyComponentBuilderFactory.JettyComponentBuilder continuationTimeout(Long continuationTimeout)
Allows to set a timeout in millis when using Jetty as consumer (server). By default Jetty uses 30000. You can use a value of = 0 to never expire. If a timeout occurs then the request will be expired and Jetty will return back a http error 503 to the client. This option is only in use when using Jetty with the Asynchronous Routing Engine. The option is a:java.lang.Long
type. Default: 30000 Group: consumer
-
enableJmx
default JettyComponentBuilderFactory.JettyComponentBuilder enableJmx(boolean enableJmx)
If this option is true, Jetty JMX support will be enabled for this endpoint. The option is a:boolean
type. Default: false Group: consumer
-
maxThreads
default JettyComponentBuilderFactory.JettyComponentBuilder maxThreads(Integer maxThreads)
To set a value for maximum number of threads in server thread pool. Notice that both a min and max size must be configured. The option is a:java.lang.Integer
type. Group: consumer
-
minThreads
default JettyComponentBuilderFactory.JettyComponentBuilder minThreads(Integer minThreads)
To set a value for minimum number of threads in server thread pool. Notice that both a min and max size must be configured. The option is a:java.lang.Integer
type. Group: consumer
-
requestBufferSize
default JettyComponentBuilderFactory.JettyComponentBuilder requestBufferSize(Integer requestBufferSize)
Allows to configure a custom value of the request buffer size on the Jetty connectors. The option is a:java.lang.Integer
type. Group: consumer
-
requestHeaderSize
default JettyComponentBuilderFactory.JettyComponentBuilder requestHeaderSize(Integer requestHeaderSize)
Allows to configure a custom value of the request header size on the Jetty connectors. The option is a:java.lang.Integer
type. Group: consumer
-
responseBufferSize
default JettyComponentBuilderFactory.JettyComponentBuilder responseBufferSize(Integer responseBufferSize)
Allows to configure a custom value of the response buffer size on the Jetty connectors. The option is a:java.lang.Integer
type. Group: consumer
-
responseHeaderSize
default JettyComponentBuilderFactory.JettyComponentBuilder responseHeaderSize(Integer responseHeaderSize)
Allows to configure a custom value of the response header size on the Jetty connectors. The option is a:java.lang.Integer
type. Group: consumer
-
sendServerVersion
default JettyComponentBuilderFactory.JettyComponentBuilder sendServerVersion(boolean sendServerVersion)
If the option is true, jetty will send the server header with the jetty version information to the client which sends the request. NOTE please make sure there is no any other camel-jetty endpoint is share the same port, otherwise this option may not work as expected. The option is a:boolean
type. Default: true Group: consumer
-
useContinuation
default JettyComponentBuilderFactory.JettyComponentBuilder useContinuation(boolean useContinuation)
Whether or not to use Jetty continuations for the Jetty Server. The option is a:boolean
type. Default: true Group: consumer
-
useXForwardedForHeader
default JettyComponentBuilderFactory.JettyComponentBuilder useXForwardedForHeader(boolean useXForwardedForHeader)
To use the X-Forwarded-For header in HttpServletRequest.getRemoteAddr. The option is a:boolean
type. Default: false Group: consumer
-
threadPool
default JettyComponentBuilderFactory.JettyComponentBuilder threadPool(org.eclipse.jetty.util.thread.ThreadPool threadPool)
To use a custom thread pool for the server. This option should only be used in special circumstances. The option is a:org.eclipse.jetty.util.thread.ThreadPool
type. Group: consumer (advanced)
-
allowJavaSerializedObject
default JettyComponentBuilderFactory.JettyComponentBuilder allowJavaSerializedObject(boolean allowJavaSerializedObject)
Whether to allow java serialization when a request uses context-type=application/x-java-serialized-object. This is by default turned off. If you enable this then be aware that Java will deserialize the incoming data from the request to Java and that can be a potential security risk. The option is a:boolean
type. Default: false Group: advanced
-
autowiredEnabled
default JettyComponentBuilderFactory.JettyComponentBuilder autowiredEnabled(boolean autowiredEnabled)
Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. The option is a:boolean
type. Default: true Group: advanced
-
errorHandler
default JettyComponentBuilderFactory.JettyComponentBuilder errorHandler(org.eclipse.jetty.server.handler.ErrorHandler errorHandler)
This option is used to set the ErrorHandler that Jetty server uses. The option is a:org.eclipse.jetty.server.handler.ErrorHandler
type. Group: advanced
-
httpBinding
default JettyComponentBuilderFactory.JettyComponentBuilder httpBinding(org.apache.camel.http.common.HttpBinding httpBinding)
Not to be used - use JettyHttpBinding instead. The option is a:org.apache.camel.http.common.HttpBinding
type. Group: advanced
-
httpConfiguration
default JettyComponentBuilderFactory.JettyComponentBuilder httpConfiguration(org.apache.camel.http.common.HttpConfiguration httpConfiguration)
Jetty component does not use HttpConfiguration. The option is a:org.apache.camel.http.common.HttpConfiguration
type. Group: advanced
-
jettyHttpBinding
default JettyComponentBuilderFactory.JettyComponentBuilder jettyHttpBinding(org.apache.camel.component.jetty.JettyHttpBinding jettyHttpBinding)
To use a custom org.apache.camel.component.jetty.JettyHttpBinding, which are used to customize how a response should be written for the producer. The option is a:org.apache.camel.component.jetty.JettyHttpBinding
type. Group: advanced
-
mbContainer
default JettyComponentBuilderFactory.JettyComponentBuilder mbContainer(org.eclipse.jetty.jmx.MBeanContainer mbContainer)
To use a existing configured org.eclipse.jetty.jmx.MBeanContainer if JMX is enabled that Jetty uses for registering mbeans. The option is a:org.eclipse.jetty.jmx.MBeanContainer
type. Group: advanced
-
headerFilterStrategy
default JettyComponentBuilderFactory.JettyComponentBuilder headerFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
To use a custom org.apache.camel.spi.HeaderFilterStrategy to filter header to and from Camel message. The option is a:org.apache.camel.spi.HeaderFilterStrategy
type. Group: filter
-
proxyHost
default JettyComponentBuilderFactory.JettyComponentBuilder proxyHost(String proxyHost)
To use a http proxy to configure the hostname. The option is a:java.lang.String
type. Group: proxy
-
proxyPort
default JettyComponentBuilderFactory.JettyComponentBuilder proxyPort(Integer proxyPort)
To use a http proxy to configure the port number. The option is a:java.lang.Integer
type. Group: proxy
-
keystore
default JettyComponentBuilderFactory.JettyComponentBuilder keystore(String keystore)
Specifies the location of the Java keystore file, which contains the Jetty server's own X.509 certificate in a key entry. The option is a:java.lang.String
type. Group: security
-
socketConnectorProperties
default JettyComponentBuilderFactory.JettyComponentBuilder socketConnectorProperties(Map<String,Object> socketConnectorProperties)
A map which contains general HTTP connector properties. Uses the same principle as sslSocketConnectorProperties. The option is a:java.util.Map
type. Group: security
-
socketConnectors
default JettyComponentBuilderFactory.JettyComponentBuilder socketConnectors(Map<Integer,org.eclipse.jetty.server.Connector> socketConnectors)
A map which contains per port number specific HTTP connectors. Uses the same principle as sslSocketConnectors. The option is a:java.util.Map
type. Group: security
-
sslContextParameters
default JettyComponentBuilderFactory.JettyComponentBuilder sslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)
To configure security using SSLContextParameters. The option is a:org.apache.camel.support.jsse.SSLContextParameters
type. Group: security
-
sslKeyPassword
default JettyComponentBuilderFactory.JettyComponentBuilder sslKeyPassword(String sslKeyPassword)
The key password, which is used to access the certificate's key entry in the keystore (this is the same password that is supplied to the keystore command's -keypass option). The option is a:java.lang.String
type. Group: security
-
sslPassword
default JettyComponentBuilderFactory.JettyComponentBuilder sslPassword(String sslPassword)
The ssl password, which is required to access the keystore file (this is the same password that is supplied to the keystore command's -storepass option). The option is a:java.lang.String
type. Group: security
-
sslSocketConnectorProperties
default JettyComponentBuilderFactory.JettyComponentBuilder sslSocketConnectorProperties(Map<String,Object> sslSocketConnectorProperties)
A map which contains general SSL connector properties. The option is a:java.util.Map
type. Group: security
-
sslSocketConnectors
default JettyComponentBuilderFactory.JettyComponentBuilder sslSocketConnectors(Map<Integer,org.eclipse.jetty.server.Connector> sslSocketConnectors)
A map which contains per port number specific SSL connectors. The option is a:java.util.Map
type. Group: security
-
useGlobalSslContextParameters
default JettyComponentBuilderFactory.JettyComponentBuilder useGlobalSslContextParameters(boolean useGlobalSslContextParameters)
Enable usage of global SSL context parameters. The option is a:boolean
type. Default: false Group: security
-
-