[CONF] Apache Camel Jetty
Claus Ibsen edited the page: Jetty ... Wiki Markup {div:class=confluenceTableSmall} || Name || Default Value || Description || | {{sessionSupport}} | {{false}} | Specifies whether to enable the session manager on the server side of Jetty. | | {{httpClient.XXX}} | {{null}} | Configuration of Jetty's [HttpClient|http://wiki.eclipse.org/Jetty/Tutorial/HttpClient]. For example, setting {{httpClient.idleTimeout=3}} sets the idle timeout to 30 seconds. And {{httpClient.timeout=3}} sets the request timeout to 30 seconds, in case you want to timeout sooner if you have long running request/response calls. | | {{httpClient}} | {{null}} | To use a shared {{org.eclipse.jetty.client.HttpClient}} for all producers created by this endpoint. This option should only be used in special circumstances. | | {{httpClientMinThreads}} | {{null}} | *Camel 2.11:* *Producer only*: 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. | | {{httpClientMaxThreads}} | {{null}} | *Camel 2.11:* *Producer only*: 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. | | {{httpBindingRef}} | {{null}} | Reference to an {{org.apache.camel.component.http.HttpBinding}} in the [Registry]. {{HttpBinding}} can be used to customize how a response should be written for the consumer. | | {{jettyHttpBindingRef}} | {{null}} | *Camel 2.6.0+:* Reference to an {{org.apache.camel.component.jetty.JettyHttpBinding}} in the [Registry]. {{JettyHttpBinding}} can be used to customize how a response should be written for the producer. | | {{matchOnUriPrefix}} | {{false}} | Whether or not the {{CamelServlet}} should try to find a target consumer by matching the URI prefix if no exact match is found. See here [How do I let Jetty match wildcards]. | | {{handlers}} | {{null}} | Specifies a comma-delimited set of {{org.mortbay.jetty.Handler}} instances in your [Registry] (such as your Spring {{ApplicationContext}}). These handlers are added to the Jetty servlet context (for example, to add security). *Important:* You can not use different handlers with different Jetty endpoints using the same port number. The handlers is associated to the port number. If you need different handlers, then use different port numbers. | | {{chunked}} | {{true}} | *Camel 2.2:* If this option is false Jetty servlet will disable the HTTP streaming and set the content-length header on the response | | {{enableJmx}} | {{false}} | *Camel 2.3:* If this option is true, Jetty JMX support will be enabled for this endpoint. See [Jetty JMX support|#Jetty JMX support] for more details. | | {{disableStreamCache}} | {{false}} | *Camel 2.3:* 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
svn commit: r917440 - in /websites/production/camel/content: cache/main.pageCache jetty.html
Author: buildbot Date: Sat Jul 26 08:19:04 2014 New Revision: 917440 Log: Production update by buildbot for camel Modified: websites/production/camel/content/cache/main.pageCache websites/production/camel/content/jetty.html Modified: websites/production/camel/content/cache/main.pageCache == Binary files - no diff available. Modified: websites/production/camel/content/jetty.html == --- websites/production/camel/content/jetty.html (original) +++ websites/production/camel/content/jetty.html Sat Jul 26 08:19:04 2014 @@ -106,7 +106,7 @@ ]]/script /div/divpYou can append query options to the URI in the following format, code?option=valueamp;option=valueamp;.../code/ph3 id=Jetty-OptionsOptions/h3div class=confluenceTableSmall table class=confluenceTabletbodytrth colspan=1 rowspan=1 class=confluenceThp Name /p/thth colspan=1 rowspan=1 class=confluenceThp Default Value /p/thth colspan=1 rowspan=1 class=confluenceThp Description /p/th/trtrtd colspan=1 rowspan=1 class=confluenceTdp codesessionSupport/code /p/tdtd colspan=1 rowspan=1 class=confluenceTdp codefalse/code /p/tdtd colspan=1 rowspan=1 class=confluenceTdp Specifies whether to enable the session manager on the server side of Jetty. /p/td/trtrtd colspan=1 rowspan=1 class=confluenceTdp codehttpClient.XXX/code /p/tdtd colspan=1 rowspan=1 class=confluenceTdp codenull/code /p/tdtd colspan=1 rowspan=1 class=confluenceTdp Configuration of Jetty's a shape=rect class=external-link href=http://wiki.eclipse.org/Jetty/Tutorial/HttpClient; rel=nofollowHttpClient/a. For example, setting codehttpClien t.idleTimeout=3/code sets the idle timeout to 30 seconds. And codehttpClient.timeout=3/code sets the request timeout to 30 seconds, in case you want to timeout sooner if you have long running request/response calls. /p/td/trtrtd colspan=1 rowspan=1 class=confluenceTdp codehttpClient/code /p/tdtd colspan=1 rowspan=1 class=confluenceTdp codenull/code /p/tdtd colspan=1 rowspan=1 class=confluenceTdp To use a shared codeorg.eclipse.jetty.client.HttpClient/code for all producers created by this endpoint. This option should only be used in special circumstances. /p/td/trtrtd colspan=1 rowspan=1 class=confluenceTdp codehttpClientMinThreads/code /p/tdtd colspan=1 rowspan=1 class=confluenceTdp codenull/code /p/tdtd colspan=1 rowspan=1 class=confluenceTdp strongCamel 2.11:/strong strongProducer only/strong: To set a value for minimum number of threads in codeH ttpClient/code 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. /p/td/trtrtd colspan=1 rowspan=1 class=confluenceTdp codehttpClientMaxThreads/code /p/tdtd colspan=1 rowspan=1 class=confluenceTdp codenull/code /p/tdtd colspan=1 rowspan=1 class=confluenceTdp strongCamel 2.11:/strong strongProducer only/strong: To set a value for maximum number of threads in codeHttpClient/code 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. /p/td/trtrtd colspan=1 rowspan=1 class=confluenceTdp codehttpBindingRef/code /p/tdtd colspan=1 rowspan=1 class=confluenceTdp codenull/code /p/tdtd cols pan=1 rowspan=1 class=confluenceTdp Reference to an codeorg.apache.camel.component.http.HttpBinding/code in the a shape=rect href=registry.html title=RegistryRegistry/a. codeHttpBinding/code can be used to customize how a response should be written for the consumer. /p/td/trtrtd colspan=1 rowspan=1 class=confluenceTdp codejettyHttpBindingRef/code /p/tdtd colspan=1 rowspan=1 class=confluenceTdp codenull/code /p/tdtd colspan=1 rowspan=1 class=confluenceTdp strongCamel 2.6.0+:/strong Reference to an codeorg.apache.camel.component.jetty.JettyHttpBinding/code in the a shape=rect href=registry.html title=RegistryRegistry/a. codeJettyHttpBinding/code can be used to customize how a response should be written for the producer. /p/td/trtrtd colspan=1 rowspan=1 class=confluenceTdp codematchOnUriPrefix/code /p/tdtd colspan=1 rowspan=1 class=confluenceTdp co defalse/code /p/tdtd colspan=1 rowspan=1 class=confluenceTdp Whether or not the codeCamelServlet/code should try to find a target consumer by matching the URI prefix if no exact match is found. See here a shape=rect href=how-do-i-let-jetty-match-wildcards.html title=How do I let Jetty match wildcardsHow do I let Jetty match wildcards/a. /p/td/trtrtd colspan=1 rowspan=1 class=confluenceTdp codehandlers/code /p/tdtd colspan=1 rowspan=1 class=confluenceTdp codenull/code /p/tdtd colspan=1 rowspan=1 class=confluenceTdp Specifies a comma-delimited set of codeorg.mortbay.jetty.Handler/code