Interface JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder
,org.apache.camel.EndpointConsumerResolver
- Enclosing interface:
- JettyHttpEndpointBuilderFactory
public static interface JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder extends org.apache.camel.builder.EndpointConsumerBuilder
Builder for endpoint for the Jetty component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default JettyHttpEndpointBuilderFactory.AdvancedJettyHttpEndpointBuilder
advanced()
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
async(boolean async)
Configure the consumer to work in async mode.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
async(String async)
Configure the consumer to work in async mode.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
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 JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
bridgeErrorHandler(String 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 JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
chunked(boolean chunked)
If this option is false the Servlet will disable the HTTP streaming and set the content-length header on the response.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
chunked(String chunked)
If this option is false the Servlet will disable the HTTP streaming and set the content-length header on the response.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
continuationTimeout(Long continuationTimeout)
Allows to set a timeout in millis when using Jetty as consumer (server).default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
continuationTimeout(String continuationTimeout)
Allows to set a timeout in millis when using Jetty as consumer (server).default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
disableStreamCache(boolean disableStreamCache)
Determines whether or not the raw input stream from Servlet is cached or not (Camel will read the stream into a in memory/overflow to file, Stream caching) cache.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
disableStreamCache(String disableStreamCache)
Determines whether or not the raw input stream from Servlet is cached or not (Camel will read the stream into a in memory/overflow to file, Stream caching) cache.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
enableCORS(boolean enableCORS)
If the option is true, Jetty server will setup the CrossOriginFilter which supports the CORS out of box.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
enableCORS(String enableCORS)
If the option is true, Jetty server will setup the CrossOriginFilter which supports the CORS out of box.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
enableJmx(boolean enableJmx)
If this option is true, Jetty JMX support will be enabled for this endpoint.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
enableJmx(String enableJmx)
If this option is true, Jetty JMX support will be enabled for this endpoint.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
enableMultipartFilter(boolean enableMultipartFilter)
Whether org.apache.camel.component.jetty.MultiPartFilter is enabled or not.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
enableMultipartFilter(String enableMultipartFilter)
Whether org.apache.camel.component.jetty.MultiPartFilter is enabled or not.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
headerFilterStrategy(String headerFilterStrategy)
To use a custom HeaderFilterStrategy to filter header to and from Camel message.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
headerFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
To use a custom HeaderFilterStrategy to filter header to and from Camel message.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
httpMethodRestrict(String httpMethodRestrict)
Used to only allow consuming if the HttpMethod matches, such as GET/POST/PUT etc.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
matchOnUriPrefix(boolean matchOnUriPrefix)
Whether or not the consumer should try to find a target consumer by matching the URI prefix if no exact match is found.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
matchOnUriPrefix(String matchOnUriPrefix)
Whether or not the consumer should try to find a target consumer by matching the URI prefix if no exact match is found.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
muteException(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.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
muteException(String muteException)
If enabled and an Exchange failed processing on the consumer side the response's body won't contain the exception's stack trace.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
responseBufferSize(Integer responseBufferSize)
To use a custom buffer size on the javax.servlet.ServletResponse.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
responseBufferSize(String responseBufferSize)
To use a custom buffer size on the javax.servlet.ServletResponse.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
sendDateHeader(boolean sendDateHeader)
If the option is true, jetty server will send the date header to the client which sends the request.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
sendDateHeader(String sendDateHeader)
If the option is true, jetty server will send the date header to the client which sends the request.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
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 JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
sendServerVersion(String 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 JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
sessionSupport(boolean sessionSupport)
Specifies whether to enable the session manager on the server side of Jetty.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
sessionSupport(String sessionSupport)
Specifies whether to enable the session manager on the server side of Jetty.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
sslContextParameters(Object sslContextParameters)
To configure security using SSLContextParameters.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
sslContextParameters(String sslContextParameters)
To configure security using SSLContextParameters.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
transferException(boolean transferException)
If enabled and an Exchange failed processing on the consumer side, and if the caused Exception was send back serialized in the response as a application/x-java-serialized-object content type.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
transferException(String transferException)
If enabled and an Exchange failed processing on the consumer side, and if the caused Exception was send back serialized in the response as a application/x-java-serialized-object content type.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
useContinuation(boolean useContinuation)
Whether or not to use Jetty continuations for the Jetty Server.default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder
useContinuation(String useContinuation)
Whether or not to use Jetty continuations for the Jetty Server.
-
-
-
Method Detail
-
advanced
default JettyHttpEndpointBuilderFactory.AdvancedJettyHttpEndpointBuilder advanced()
-
disableStreamCache
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder disableStreamCache(boolean disableStreamCache)
Determines whether or not the raw input stream from Servlet is cached or not (Camel will read the stream into a in memory/overflow to file, Stream caching) cache. By default Camel will cache the Servlet input stream to support reading it multiple times to ensure it Camel can retrieve all data from the stream. However you can set this option to true when you for example need to access the raw stream, such as streaming it directly to a file or other persistent store. DefaultHttpBinding will copy the request input stream into a stream cache and put it into message body if this option is false to support reading the stream multiple times. If you use Servlet to bridge/proxy an endpoint then consider enabling this option to improve performance, in case you do not need to read the message payload multiple times. The http producer will by default cache the response body stream. If setting this option to true, then the producers will not cache the response body stream but use the response stream as-is as the message body. The option is a:boolean
type. Default: false Group: common
-
disableStreamCache
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder disableStreamCache(String disableStreamCache)
Determines whether or not the raw input stream from Servlet is cached or not (Camel will read the stream into a in memory/overflow to file, Stream caching) cache. By default Camel will cache the Servlet input stream to support reading it multiple times to ensure it Camel can retrieve all data from the stream. However you can set this option to true when you for example need to access the raw stream, such as streaming it directly to a file or other persistent store. DefaultHttpBinding will copy the request input stream into a stream cache and put it into message body if this option is false to support reading the stream multiple times. If you use Servlet to bridge/proxy an endpoint then consider enabling this option to improve performance, in case you do not need to read the message payload multiple times. The http producer will by default cache the response body stream. If setting this option to true, then the producers will not cache the response body stream but use the response stream as-is as the message body. The option will be converted to aboolean
type. Default: false Group: common
-
headerFilterStrategy
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder headerFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
To use a custom HeaderFilterStrategy to filter header to and from Camel message. The option is a:org.apache.camel.spi.HeaderFilterStrategy
type. Group: common
-
headerFilterStrategy
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder headerFilterStrategy(String headerFilterStrategy)
To use a custom HeaderFilterStrategy to filter header to and from Camel message. The option will be converted to aorg.apache.camel.spi.HeaderFilterStrategy
type. Group: common
-
async
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder async(boolean async)
Configure the consumer to work in async mode. The option is a:boolean
type. Default: false Group: consumer
-
async
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder async(String async)
Configure the consumer to work in async mode. The option will be converted to aboolean
type. Default: false Group: consumer
-
bridgeErrorHandler
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder 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
-
bridgeErrorHandler
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder bridgeErrorHandler(String 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 will be converted to aboolean
type. Default: false Group: consumer
-
chunked
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder chunked(boolean chunked)
If this option is false the Servlet will disable the HTTP streaming and set the content-length header on the response. The option is a:boolean
type. Default: true Group: consumer
-
chunked
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder chunked(String chunked)
If this option is false the Servlet will disable the HTTP streaming and set the content-length header on the response. The option will be converted to aboolean
type. Default: true Group: consumer
-
continuationTimeout
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder 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
-
continuationTimeout
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder continuationTimeout(String 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 will be converted to ajava.lang.Long
type. Default: 30000 Group: consumer
-
enableCORS
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder enableCORS(boolean enableCORS)
If the option is true, Jetty server will setup the CrossOriginFilter which supports the CORS out of box. The option is a:boolean
type. Default: false Group: consumer
-
enableCORS
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder enableCORS(String enableCORS)
If the option is true, Jetty server will setup the CrossOriginFilter which supports the CORS out of box. The option will be converted to aboolean
type. Default: false Group: consumer
-
enableJmx
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder enableJmx(boolean enableJmx)
If this option is true, Jetty JMX support will be enabled for this endpoint. See Jetty JMX support for more details. The option is a:boolean
type. Default: false Group: consumer
-
enableJmx
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder enableJmx(String enableJmx)
If this option is true, Jetty JMX support will be enabled for this endpoint. See Jetty JMX support for more details. The option will be converted to aboolean
type. Default: false Group: consumer
-
enableMultipartFilter
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder enableMultipartFilter(boolean enableMultipartFilter)
Whether org.apache.camel.component.jetty.MultiPartFilter is enabled or not. You should set this value to false when bridging endpoints, to ensure multipart requests is proxied/bridged as well. The option is a:boolean
type. Default: false Group: consumer
-
enableMultipartFilter
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder enableMultipartFilter(String enableMultipartFilter)
Whether org.apache.camel.component.jetty.MultiPartFilter is enabled or not. You should set this value to false when bridging endpoints, to ensure multipart requests is proxied/bridged as well. The option will be converted to aboolean
type. Default: false Group: consumer
-
httpMethodRestrict
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder httpMethodRestrict(String httpMethodRestrict)
Used to only allow consuming if the HttpMethod matches, such as GET/POST/PUT etc. Multiple methods can be specified separated by comma. The option is a:java.lang.String
type. Group: consumer
-
matchOnUriPrefix
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder matchOnUriPrefix(boolean matchOnUriPrefix)
Whether or not the consumer should try to find a target consumer by matching the URI prefix if no exact match is found. The option is a:boolean
type. Default: false Group: consumer
-
matchOnUriPrefix
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder matchOnUriPrefix(String matchOnUriPrefix)
Whether or not the consumer should try to find a target consumer by matching the URI prefix if no exact match is found. The option will be converted to aboolean
type. Default: false Group: consumer
-
muteException
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder muteException(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. The option is a:boolean
type. Default: false Group: consumer
-
muteException
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder muteException(String muteException)
If enabled and an Exchange failed processing on the consumer side the response's body won't contain the exception's stack trace. The option will be converted to aboolean
type. Default: false Group: consumer
-
responseBufferSize
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder responseBufferSize(Integer responseBufferSize)
To use a custom buffer size on the javax.servlet.ServletResponse. The option is a:java.lang.Integer
type. Group: consumer
-
responseBufferSize
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder responseBufferSize(String responseBufferSize)
To use a custom buffer size on the javax.servlet.ServletResponse. The option will be converted to ajava.lang.Integer
type. Group: consumer
-
sendDateHeader
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder sendDateHeader(boolean sendDateHeader)
If the option is true, jetty server will send the date header 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: false Group: consumer
-
sendDateHeader
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder sendDateHeader(String sendDateHeader)
If the option is true, jetty server will send the date header 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 will be converted to aboolean
type. Default: false Group: consumer
-
sendServerVersion
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder 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
-
sendServerVersion
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder sendServerVersion(String 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 will be converted to aboolean
type. Default: true Group: consumer
-
sessionSupport
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder sessionSupport(boolean sessionSupport)
Specifies whether to enable the session manager on the server side of Jetty. The option is a:boolean
type. Default: false Group: consumer
-
sessionSupport
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder sessionSupport(String sessionSupport)
Specifies whether to enable the session manager on the server side of Jetty. The option will be converted to aboolean
type. Default: false Group: consumer
-
transferException
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder transferException(boolean transferException)
If enabled and an Exchange failed processing on the consumer side, and if the caused Exception was send back serialized in the response as a application/x-java-serialized-object content type. On the producer side the exception will be deserialized and thrown as is, instead of the HttpOperationFailedException. The caused exception is required to be serialized. 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: consumer
-
transferException
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder transferException(String transferException)
If enabled and an Exchange failed processing on the consumer side, and if the caused Exception was send back serialized in the response as a application/x-java-serialized-object content type. On the producer side the exception will be deserialized and thrown as is, instead of the HttpOperationFailedException. The caused exception is required to be serialized. 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 will be converted to aboolean
type. Default: false Group: consumer
-
useContinuation
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder useContinuation(boolean useContinuation)
Whether or not to use Jetty continuations for the Jetty Server. The option is a:boolean
type. Group: consumer
-
useContinuation
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder useContinuation(String useContinuation)
Whether or not to use Jetty continuations for the Jetty Server. The option will be converted to aboolean
type. Group: consumer
-
sslContextParameters
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder sslContextParameters(Object sslContextParameters)
To configure security using SSLContextParameters. The option is a:org.apache.camel.support.jsse.SSLContextParameters
type. Group: security
-
sslContextParameters
default JettyHttpEndpointBuilderFactory.JettyHttpEndpointBuilder sslContextParameters(String sslContextParameters)
To configure security using SSLContextParameters. The option will be converted to aorg.apache.camel.support.jsse.SSLContextParameters
type. Group: security
-
-