nifi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tk...@apache.org
Subject [2/5] nifi git commit: NiFI-747: Added a validator to exposed URI property
Date Sun, 18 Oct 2015 17:23:20 GMT
NiFI-747: Added a validator to exposed URI property


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

Branch: refs/heads/NIFI-747
Commit: fa67a853fac26a43965e5b25690f6fc15ef3e529
Parents: 8d141d7
Author: Venkatesh Sellappa <VS186031@outlook.com>
Authored: Sat Oct 17 20:45:26 2015 +0100
Committer: Venkatesh Sellappa <VS186031@outlook.com>
Committed: Sat Oct 17 20:58:14 2015 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/nifi/processors/standard/ListenHTTP.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/fa67a853/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ListenHTTP.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ListenHTTP.java
b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ListenHTTP.java
index e0202ca..64ba237 100644
--- a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ListenHTTP.java
+++ b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ListenHTTP.java
@@ -63,7 +63,7 @@ import org.eclipse.jetty.util.ssl.SslContextFactory;
 import org.eclipse.jetty.util.thread.QueuedThreadPool;
 
 @Tags({"ingest", "http", "https", "rest", "listen"})
-@CapabilityDescription("Starts an HTTP Server that is used to receive FlowFiles from remote
sources. The default URL of the Service will be http://{hostname}:{port}/contentListener")
+@CapabilityDescription("Starts an HTTP Server that is used to receive FlowFiles from remote
sources. The default URI of the Service will be http://{hostname}:{port}/contentListener")
 public class ListenHTTP extends AbstractSessionFactoryProcessor {
 
     private Set<Relationship> relationships;
@@ -80,6 +80,7 @@ public class ListenHTTP extends AbstractSessionFactoryProcessor {
             .required(true)
             .defaultValue("/contentListener")
             .addValidator(StandardValidators.URI_VALIDATOR)
+            .addValidator(StandardValidators.createRegexMatchingValidator(Pattern.compile("/.*")))
             .build();
     public static final PropertyDescriptor PORT = new PropertyDescriptor.Builder()
             .name("Listening Port")


Mime
View raw message