Name | Kind | Group | Required | Default | Type | Enum | Description |
---|---|---|---|---|---|---|---|
httpUri | path | producer | true | java.net.URI | The url of the HTTP endpoint to call. | ||
binding | parameter | common | org.apache.camel.http.common.HttpBinding | To use a custom HttpBinding to control the mapping between Camel message and HttpClient. | |||
chunked | parameter | common | true | boolean | If this option is false Jetty servlet will disable the HTTP streaming and set the content-length header on the response | ||
enableMultipartFilter | parameter | common | boolean | Whether Jetty org.eclipse.jetty.servlets.MultiPartFilter is enabled or not. You should set this value to false when bridging endpoints, to ensure multipart requests is proxied/bridged as well. | |||
headerFilterStrategy | parameter | common | org.apache.camel.spi.HeaderFilterStrategy | To use a custom HeaderFilterStrategy to filter header to and from Camel message. | |||
transferException | parameter | common | boolean | 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. | |||
continuationTimeout | parameter | consumer | 30000 | java.lang.Long | 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. | ||
disableStreamCache | parameter | consumer | boolean | Determines whether or not the raw input stream from Jetty 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 Jetty 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 Jetty 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. | |||
eagerCheckContentAvailable | parameter | consumer | boolean | Whether to eager check whether the HTTP requests has content if the content-length header is 0 or not present. This can be turned on in case HTTP clients do not send streamed data. | |||
enableJmx | parameter | consumer | boolean | If this option is true, Jetty JMX support will be enabled for this endpoint. See Jetty JMX support for more details. | |||
httpMethodRestrict | parameter | consumer | java.lang.String | Used to only allow consuming if the HttpMethod matches, such as GET/POST/PUT etc. Multiple methods can be specified separated by comma. | |||
matchOnUriPrefix | parameter | consumer | boolean | Whether or not the consumer should try to find a target consumer by matching the URI prefix if no exact match is found. | |||
responseBufferSize | parameter | consumer | java.lang.Integer | To use a custom buffer size on the javax.servlet.ServletResponse. | |||
sendDateHeader | parameter | consumer | boolean | 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. | |||
sendServerVersion | parameter | consumer | true | boolean | 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. | ||
sessionSupport | parameter | consumer | boolean | Specifies whether to enable the session manager on the server side of Jetty. | |||
traceEnabled | parameter | consumer | boolean | Specifies whether to enable HTTP TRACE for this Jetty consumer. By default TRACE is turned off. | |||
useContinuation | parameter | consumer | java.lang.Boolean | Whether or not to use Jetty continuations for the Jetty Server. | |||
authMethodPriority | parameter | producer | java.lang.String | Basic Digest NTLM |
Authentication method for proxy, either as Basic, Digest or NTLM. | ||
bridgeEndpoint | parameter | producer | boolean | If the option is true, HttpProducer will ignore the Exchange.HTTP_URI header, and use the endpoint's URI for request. You may also set the option throwExceptionOnFailure to be false to let the HttpProducer send all the fault response back. | |||
copyHeaders | parameter | producer | true | boolean | If this option is true then IN exchange headers will be copied to OUT exchange headers according to copy strategy. Setting this to false, allows to only include the headers from the HTTP response (not propagating IN headers). | ||
httpClientMaxThreads | parameter | producer | 254 | java.lang.Integer | To set a value for maximum number of threads in HttpClient thread pool. This setting override any setting configured on component level. Notice that both a min and max size must be configured. If not set it default to max 254 threads used in Jettys thread pool. | ||
httpClientMinThreads | parameter | producer | 8 | java.lang.Integer | To set a value for minimum number of threads in HttpClient thread pool. This setting override any setting configured on component level. Notice that both a min and max size must be configured. If not set it default to min 8 threads used in Jettys thread pool. | ||
ignoreResponseBody | parameter | producer | boolean | If this option is true, The http producer won't read response body and cache the input stream | |||
okStatusCodeRange | parameter | producer | 200-299 | java.lang.String | The status codes which is considered a success response. The values are inclusive. The range must be defined as from-to with the dash included. | ||
proxyHost | parameter | producer | java.lang.String | The proxy host name | |||
proxyPort | parameter | producer | int | The proxy port number | |||
throwExceptionOnFailure | parameter | producer | true | boolean | Option to disable throwing the HttpOperationFailedException in case of failed responses from the remote server. This allows you to get all responses regardless of the HTTP status code. | ||
exchangePattern | parameter | advanced | InOnly | org.apache.camel.ExchangePattern | InOnly RobustInOnly InOut InOptionalOut OutOnly RobustOutOnly OutIn OutOptionalIn |
Sets the default exchange pattern when creating an exchange | |
synchronous | parameter | advanced | false | boolean | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). |