camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [4/4] camel git commit: Polished and fixed endpoint details. This closes #813. This closes #787.
Date Thu, 28 Jan 2016 08:19:05 GMT
Polished and fixed endpoint details. This closes #813. This closes #787.


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

Branch: refs/heads/master
Commit: 034b73cb31cd0c2d6cbb7602d28cf4ee41851f78
Parents: 4da7d6e
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Thu Jan 28 09:18:51 2016 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Thu Jan 28 09:18:51 2016 +0100

----------------------------------------------------------------------
 .../apache/camel/component/mllp/MllpEndpoint.java | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/034b73cb/components/camel-mllp/src/main/java/org/apache/camel/component/mllp/MllpEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-mllp/src/main/java/org/apache/camel/component/mllp/MllpEndpoint.java
b/components/camel-mllp/src/main/java/org/apache/camel/component/mllp/MllpEndpoint.java
index 3a274ef..81a2e97 100644
--- a/components/camel-mllp/src/main/java/org/apache/camel/component/mllp/MllpEndpoint.java
+++ b/components/camel-mllp/src/main/java/org/apache/camel/component/mllp/MllpEndpoint.java
@@ -22,6 +22,7 @@ import org.apache.camel.ExchangePattern;
 import org.apache.camel.Processor;
 import org.apache.camel.Producer;
 import org.apache.camel.impl.DefaultEndpoint;
+import org.apache.camel.spi.Metadata;
 import org.apache.camel.spi.UriEndpoint;
 import org.apache.camel.spi.UriParam;
 import org.apache.camel.spi.UriPath;
@@ -47,10 +48,10 @@ public class MllpEndpoint extends DefaultEndpoint {
 
     private static final Logger LOG = LoggerFactory.getLogger(MllpEndpoint.class);
 
-    @UriPath(defaultValue = "null")
+    @UriPath @Metadata(required = "true")
     String hostname;
 
-    @UriPath(description = "TCP Port for connection")
+    @UriPath @Metadata(required = "true")
     int port = -1;
 
     @UriParam(defaultValue = "5")
@@ -77,22 +78,19 @@ public class MllpEndpoint extends DefaultEndpoint {
     @UriParam(defaultValue = "true")
     boolean tcpNoDelay = true;
 
-    @UriParam(defaultValue = "false")
+    @UriParam
     boolean reuseAddress;
 
-    @UriParam(defaultValue = "System Default")
+    @UriParam
     Integer receiveBufferSize;
 
-    @UriParam(defaultValue = "System Default")
+    @UriParam
     Integer sendBufferSize;
 
-    @UriParam(description = "The TCP mode of the endpoint (client or server).  Defaults to
client for Producers and server for Consumers")
-    String tcpMode;
-
     @UriParam(defaultValue = "true")
     boolean autoAck = true;
 
-    @UriParam(defaultValue = "System Default")
+    @UriParam
     String charsetName;
 
     public MllpEndpoint(String uri, MllpComponent component) {
@@ -152,7 +150,7 @@ public class MllpEndpoint extends DefaultEndpoint {
     /**
      * Set the CamelCharsetName property on the exchange
      *
-     * @param charsetName
+     * @param charsetName the charset
      */
     public void setCharsetName(String charsetName) {
         this.charsetName = charsetName;


Mime
View raw message