CAMEL-9131: Add more labels to Camel components for options.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/bfb5b9e3 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/bfb5b9e3 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/bfb5b9e3 Branch: refs/heads/master Commit: bfb5b9e37372938ea1f3eb172a2b3f211155241d Parents: 98a2ed9 Author: Claus Ibsen <davscl...@apache.org> Authored: Tue Sep 22 11:04:02 2015 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Tue Sep 22 11:04:02 2015 +0200 ---------------------------------------------------------------------- .../netty/http/NettyHttpConfiguration.java | 25 +++++++++++--------- .../component/netty/http/NettyHttpEndpoint.java | 14 +++++------ .../netty4/http/NettyHttpConfiguration.java | 22 ++++++++--------- .../netty4/http/NettyHttpEndpoint.java | 14 +++++------ 4 files changed, 39 insertions(+), 36 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/bfb5b9e3/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpConfiguration.java b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpConfiguration.java index 3ed99a5..7f63eba 100644 --- a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpConfiguration.java +++ b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpConfiguration.java @@ -36,31 +36,31 @@ public class NettyHttpConfiguration extends NettyConfiguration { @UriPath @Metadata(required = "true") private String path; - @UriParam + @UriParam(label = "consumer,advanced") private boolean urlDecodeHeaders; - @UriParam(defaultValue = "true") + @UriParam(label = "consumer,advanced", defaultValue = "true") private boolean mapHeaders = true; - @UriParam + @UriParam(label = "consumer,advanced") private boolean compression; - @UriParam(defaultValue = "true") + @UriParam(label = "producer", defaultValue = "true") private boolean throwExceptionOnFailure = true; - @UriParam + @UriParam(label = "advanced") private boolean transferException; - @UriParam + @UriParam(label = "consumer") private boolean matchOnUriPrefix; @UriParam private boolean bridgeEndpoint; - @UriParam + @UriParam(label = "consumer,advanced") private boolean disableStreamCache; @UriParam(label = "consumer", defaultValue = "true") private boolean send503whenSuspended = true; - @UriParam(defaultValue = "" + 1024 * 1024) + @UriParam(label = "consumer,advanced", defaultValue = "" + 1024 * 1024) private int chunkedMaxContentLength = 1024 * 1024; - @UriParam(label = "consumer", defaultValue = "8192") + @UriParam(label = "consumer,advanced", defaultValue = "8192") private int maxHeaderSize = 8192; - @UriParam(label = "producer", defaultValue = "200-299") + @UriParam(label = "producer,advanced", defaultValue = "200-299") private String okStatusCodeRange = "200-299"; - @UriParam(label = "producer", defaultValue = "false") + @UriParam(label = "producer,advanced") private boolean useRelativePath; public NettyHttpConfiguration() { @@ -264,6 +264,9 @@ public class NettyHttpConfiguration extends NettyConfiguration { /** * Sets whether to use a relative path in HTTP requests. + * <p/> + * Some third party backend systems such as IBM Datapower do not support absolute URIs in HTTP POSTs, and setting + * this option to <tt>true</tt> can work around this problem. */ public void setUseRelativePath(boolean useRelativePath) { this.useRelativePath = useRelativePath; http://git-wip-us.apache.org/repos/asf/camel/blob/bfb5b9e3/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpEndpoint.java ---------------------------------------------------------------------- diff --git a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpEndpoint.java b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpEndpoint.java index 9cc5ac6..bd5332c 100644 --- a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpEndpoint.java +++ b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpEndpoint.java @@ -45,18 +45,18 @@ public class NettyHttpEndpoint extends NettyEndpoint implements HeaderFilterStra private static final Logger LOG = LoggerFactory.getLogger(NettyHttpEndpoint.class); @UriParam + private NettyHttpConfiguration configuration; + @UriParam(label = "advanced") private NettyHttpBinding nettyHttpBinding; - @UriParam + @UriParam(label = "advanced") private HeaderFilterStrategy headerFilterStrategy; - @UriParam - private NettyHttpConfiguration configuration; - @UriParam + @UriParam(label = "consumer,advanced") private boolean traceEnabled; - @UriParam + @UriParam(label = "consumer,advanced") private String httpMethodRestrict; - @UriParam + @UriParam(label = "consumer,advanced") private NettySharedHttpServer nettySharedHttpServer; - @UriParam(label = "consumer") + @UriParam(label = "consumer,security") private NettyHttpSecurityConfiguration securityConfiguration; public NettyHttpEndpoint(String endpointUri, NettyHttpComponent component, NettyConfiguration configuration) { http://git-wip-us.apache.org/repos/asf/camel/blob/bfb5b9e3/components/camel-netty4-http/src/main/java/org/apache/camel/component/netty4/http/NettyHttpConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-netty4-http/src/main/java/org/apache/camel/component/netty4/http/NettyHttpConfiguration.java b/components/camel-netty4-http/src/main/java/org/apache/camel/component/netty4/http/NettyHttpConfiguration.java index 894e47c..31627aa 100644 --- a/components/camel-netty4-http/src/main/java/org/apache/camel/component/netty4/http/NettyHttpConfiguration.java +++ b/components/camel-netty4-http/src/main/java/org/apache/camel/component/netty4/http/NettyHttpConfiguration.java @@ -35,31 +35,31 @@ public class NettyHttpConfiguration extends NettyConfiguration { @UriPath @Metadata(required = "true") private String path; - @UriParam + @UriParam(label = "consumer,advanced") private boolean urlDecodeHeaders; - @UriParam(defaultValue = "true") + @UriParam(label = "consumer,advanced", defaultValue = "true") private boolean mapHeaders = true; - @UriParam + @UriParam(label = "consumer,advanced") private boolean compression; - @UriParam(defaultValue = "true") + @UriParam(label = "producer", defaultValue = "true") private boolean throwExceptionOnFailure = true; - @UriParam + @UriParam(label = "advanced") private boolean transferException; - @UriParam + @UriParam(label = "consumer") private boolean matchOnUriPrefix; @UriParam private boolean bridgeEndpoint; - @UriParam + @UriParam(label = "consumer,advanced") private boolean disableStreamCache; @UriParam(label = "consumer", defaultValue = "true") private boolean send503whenSuspended = true; - @UriParam(defaultValue = "" + 1024 * 1024) + @UriParam(label = "consumer,advanced", defaultValue = "" + 1024 * 1024) private int chunkedMaxContentLength = 1024 * 1024; - @UriParam(label = "consumer", defaultValue = "8192") + @UriParam(label = "consumer,advanced", defaultValue = "8192") private int maxHeaderSize = 8192; - @UriParam(label = "producer", defaultValue = "200-299") + @UriParam(label = "producer,advanced", defaultValue = "200-299") private String okStatusCodeRange = "200-299"; - @UriParam(label = "producer", defaultValue = "false") + @UriParam(label = "producer,advanced") private boolean useRelativePath; public NettyHttpConfiguration() { http://git-wip-us.apache.org/repos/asf/camel/blob/bfb5b9e3/components/camel-netty4-http/src/main/java/org/apache/camel/component/netty4/http/NettyHttpEndpoint.java ---------------------------------------------------------------------- diff --git a/components/camel-netty4-http/src/main/java/org/apache/camel/component/netty4/http/NettyHttpEndpoint.java b/components/camel-netty4-http/src/main/java/org/apache/camel/component/netty4/http/NettyHttpEndpoint.java index 736ced4..5d96197 100644 --- a/components/camel-netty4-http/src/main/java/org/apache/camel/component/netty4/http/NettyHttpEndpoint.java +++ b/components/camel-netty4-http/src/main/java/org/apache/camel/component/netty4/http/NettyHttpEndpoint.java @@ -44,18 +44,18 @@ public class NettyHttpEndpoint extends NettyEndpoint implements HeaderFilterStra private static final Logger LOG = LoggerFactory.getLogger(NettyHttpEndpoint.class); @UriParam + private NettyHttpConfiguration configuration; + @UriParam(label = "advanced") private NettyHttpBinding nettyHttpBinding; - @UriParam + @UriParam(label = "advanced") private HeaderFilterStrategy headerFilterStrategy; - @UriParam - private NettyHttpConfiguration configuration; - @UriParam + @UriParam(label = "consumer,advanced") private boolean traceEnabled; - @UriParam + @UriParam(label = "consumer,advanced") private String httpMethodRestrict; - @UriParam + @UriParam(label = "consumer,advanced") private NettySharedHttpServer nettySharedHttpServer; - @UriParam + @UriParam(label = "consumer,security") private NettyHttpSecurityConfiguration securityConfiguration; public NettyHttpEndpoint(String endpointUri, NettyHttpComponent component, NettyConfiguration configuration) {