CAMEL-11282: Polished. This closes #2042.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/c0f063c7 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/c0f063c7 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/c0f063c7 Branch: refs/heads/master Commit: c0f063c763783b67668b366a1ac501df03eb9de3 Parents: 420f06e Author: Claus Ibsen <[email protected]> Authored: Mon Oct 16 15:45:39 2017 +0200 Committer: Claus Ibsen <[email protected]> Committed: Mon Oct 16 15:45:39 2017 +0200 ---------------------------------------------------------------------- .../src/main/docs/restlet-component.adoc | 2 +- .../component/restlet/RestletComponent.java | 7 ++--- .../RestletComponentConfiguration.java | 30 ++++++++++---------- 3 files changed, 18 insertions(+), 21 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/c0f063c7/components/camel-restlet/src/main/docs/restlet-component.adoc ---------------------------------------------------------------------- diff --git a/components/camel-restlet/src/main/docs/restlet-component.adoc b/components/camel-restlet/src/main/docs/restlet-component.adoc index b22f9ff..fe3e45f 100644 --- a/components/camel-restlet/src/main/docs/restlet-component.adoc +++ b/components/camel-restlet/src/main/docs/restlet-component.adoc @@ -71,7 +71,7 @@ The Restlet component supports 22 options which are listed below. | Name | Description | Default | Type | *controllerDaemon* (consumer) | Indicates if the controller thread should be a daemon (not blocking JVM exit). | | Boolean | *controllerSleepTimeMs* (consumer) | Time for the controller thread to sleep between each control. | | Integer -| *headerFilterStrategy* (filter) | Custom org.apache.camel.spi.HeaderFilterStrategy to filter header to and from Camel message. | | HeaderFilterStrategy +| *headerFilterStrategy* (filter) | To use a custom org.apache.camel.spi.HeaderFilterStrategy to filter header to and from Camel message. | | HeaderFilterStrategy | *inboundBufferSize* (consumer) | The size of the buffer when reading messages. | | Integer | *maxConnectionsPerHost* (common) | Maximum number of concurrent connections per host (IP address). | | Integer | *maxThreads* (consumer) | Maximum threads that will service requests. | | Integer http://git-wip-us.apache.org/repos/asf/camel/blob/c0f063c7/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/RestletComponent.java ---------------------------------------------------------------------- diff --git a/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/RestletComponent.java b/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/RestletComponent.java index 1671dfa..b308df2 100644 --- a/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/RestletComponent.java +++ b/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/RestletComponent.java @@ -119,10 +119,7 @@ public class RestletComponent extends DefaultComponent implements RestConsumerFa private List<String> enabledConverters; @Metadata(label = "security", defaultValue = "false") private boolean useGlobalSslContextParameters; - @Metadata( - label = "filter", - description = "To use a custom org.apache.camel.spi.HeaderFilterStrategy to filter header to and from Camel message." - ) + @Metadata(label = "filter", description = "To use a custom org.apache.camel.spi.HeaderFilterStrategy to filter header to and from Camel message.") private HeaderFilterStrategy headerFilterStrategy; public RestletComponent() { @@ -555,7 +552,7 @@ public class RestletComponent extends DefaultComponent implements RestConsumerFa } /** - * Custom org.apache.camel.spi.HeaderFilterStrategy to filter header to and from Camel message. + * To use a custom {@link org.apache.camel.spi.HeaderFilterStrategy} to filter header to and from Camel message. */ public void setHeaderFilterStrategy(HeaderFilterStrategy strategy) { this.headerFilterStrategy = strategy; http://git-wip-us.apache.org/repos/asf/camel/blob/c0f063c7/platforms/spring-boot/components-starter/camel-restlet-starter/src/main/java/org/apache/camel/component/restlet/springboot/RestletComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/platforms/spring-boot/components-starter/camel-restlet-starter/src/main/java/org/apache/camel/component/restlet/springboot/RestletComponentConfiguration.java b/platforms/spring-boot/components-starter/camel-restlet-starter/src/main/java/org/apache/camel/component/restlet/springboot/RestletComponentConfiguration.java index c303d50..9d45988 100644 --- a/platforms/spring-boot/components-starter/camel-restlet-starter/src/main/java/org/apache/camel/component/restlet/springboot/RestletComponentConfiguration.java +++ b/platforms/spring-boot/components-starter/camel-restlet-starter/src/main/java/org/apache/camel/component/restlet/springboot/RestletComponentConfiguration.java @@ -44,6 +44,12 @@ public class RestletComponentConfiguration */ private Integer controllerSleepTimeMs; /** + * To use a custom org.apache.camel.spi.HeaderFilterStrategy to filter + * header to and from Camel message. + */ + @NestedConfigurationProperty + private HeaderFilterStrategy headerFilterStrategy; + /** * The size of the buffer when reading messages. */ private Integer inboundBufferSize; @@ -138,12 +144,6 @@ public class RestletComponentConfiguration */ private Boolean useGlobalSslContextParameters = false; /** - * To use a custom org.apache.camel.spi.HeaderFilterStrategy to filter - * header to and from Camel message. - */ - @NestedConfigurationProperty - private HeaderFilterStrategy headerFilterStrategy; - /** * Whether the component should resolve property placeholders on itself when * starting. Only properties which are of String type can use property * placeholders. @@ -166,6 +166,15 @@ public class RestletComponentConfiguration this.controllerSleepTimeMs = controllerSleepTimeMs; } + public HeaderFilterStrategy getHeaderFilterStrategy() { + return headerFilterStrategy; + } + + public void setHeaderFilterStrategy( + HeaderFilterStrategy headerFilterStrategy) { + this.headerFilterStrategy = headerFilterStrategy; + } + public Integer getInboundBufferSize() { return inboundBufferSize; } @@ -311,15 +320,6 @@ public class RestletComponentConfiguration this.useGlobalSslContextParameters = useGlobalSslContextParameters; } - public HeaderFilterStrategy getHeaderFilterStrategy() { - return headerFilterStrategy; - } - - public void setHeaderFilterStrategy( - HeaderFilterStrategy headerFilterStrategy) { - this.headerFilterStrategy = headerFilterStrategy; - } - public Boolean getResolvePropertyPlaceholders() { return resolvePropertyPlaceholders; }
