CAMEL-10270: Updated camel-jetty9 docs

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/cff69b0c
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/cff69b0c
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/cff69b0c

Branch: refs/heads/master
Commit: cff69b0cb6a6362c281025477658c2d8734da001
Parents: 08f46a7
Author: Andrea Cosentino <anco...@gmail.com>
Authored: Fri Aug 26 11:25:58 2016 +0200
Committer: Andrea Cosentino <anco...@gmail.com>
Committed: Fri Aug 26 11:27:11 2016 +0200

----------------------------------------------------------------------
 .../springboot/JettyHttpComponentConfiguration9.java    | 12 ++++++++++++
 .../camel-jetty9/src/main/docs/jetty-component.adoc     |  3 ++-
 2 files changed, 14 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/cff69b0c/components-starter/camel-jetty9-starter/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentConfiguration9.java
----------------------------------------------------------------------
diff --git 
a/components-starter/camel-jetty9-starter/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentConfiguration9.java
 
b/components-starter/camel-jetty9-starter/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentConfiguration9.java
index 0f23b7b..f622174 100644
--- 
a/components-starter/camel-jetty9-starter/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentConfiguration9.java
+++ 
b/components-starter/camel-jetty9-starter/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentConfiguration9.java
@@ -169,6 +169,10 @@ public class JettyHttpComponentConfiguration9 {
      */
     private Integer proxyPort;
     /**
+     * To use the X-Fowarded-For header in HttpServletRequest.getRemoteAddr.
+     */
+    private Boolean useXForwardedForHeader;
+    /**
      * 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
@@ -409,6 +413,14 @@ public class JettyHttpComponentConfiguration9 {
         this.proxyPort = proxyPort;
     }
 
+    public Boolean getUseXForwardedForHeader() {
+        return useXForwardedForHeader;
+    }
+
+    public void setUseXForwardedForHeader(Boolean useXForwardedForHeader) {
+        this.useXForwardedForHeader = useXForwardedForHeader;
+    }
+
     public Boolean getSendServerVersion() {
         return sendServerVersion;
     }

http://git-wip-us.apache.org/repos/asf/camel/blob/cff69b0c/components/camel-jetty9/src/main/docs/jetty-component.adoc
----------------------------------------------------------------------
diff --git a/components/camel-jetty9/src/main/docs/jetty-component.adoc 
b/components/camel-jetty9/src/main/docs/jetty-component.adoc
index 13ed693..778d0d9 100644
--- a/components/camel-jetty9/src/main/docs/jetty-component.adoc
+++ b/components/camel-jetty9/src/main/docs/jetty-component.adoc
@@ -54,7 +54,7 @@ Options
 
 
 // component options: START
-The Jetty 9 component supports 30 options which are listed below.
+The Jetty 9 component supports 31 options which are listed below.
 
 
 
@@ -89,6 +89,7 @@ The Jetty 9 component supports 30 options which are listed 
below.
 | responseHeaderSize | Integer | Allows to configure a custom value of the 
response header size on the Jetty connectors.
 | proxyHost | String | To use a http proxy to configure the hostname.
 | proxyPort | Integer | To use a http proxy to configure the port number.
+| useXForwardedForHeader | boolean | To use the X-Fowarded-For header in 
HttpServletRequest.getRemoteAddr.
 | sendServerVersion | 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.
 | allowJavaSerializedObject | boolean | 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.
 | headerFilterStrategy | HeaderFilterStrategy | To use a custom 
HeaderFilterStrategy to filter header to and from Camel message.

Reply via email to