refactor: Remove options used solely by the con...
...nector
Options not recognized recognized by the base Camel component cannot be
specified on the endpoint URI, this removes those options that are used
only by the connector.
*/
package io.syndesis.connector;
+import java.util.Map;
import java.util.Properties;
+import org.apache.camel.Endpoint;
import org.apache.camel.Processor;
import org.apache.camel.component.connector.DefaultConnectorComponent;
@@ -43,4 +45,17 @@ public class SqlStoredConnectorComponent extends DefaultConnectorComponent {
return processor;
}
+ @Override
+ protected Endpoint createEndpoint(final String uri, final String remaining, final Map<String, Object> parameters)
+ throws Exception {
+ parameters.remove("catalog");
+ parameters.remove("databaseName");
+ parameters.remove("procedureName");
+ parameters.remove("password");
+ parameters.remove("username");
+ parameters.remove("schema");
+
+ return super.createEndpoint(uri, remaining, parameters);
+ }
+
}
