NIFI-3230 fix ActiveMQ SSL support for simple connect URIs in Get/Put JMS processors

This closes #1344.
This commit is contained in:
Mike Moser 2016-12-20 17:26:39 +00:00 committed by Pierre Villard
parent 474df053d6
commit 3259b01f8e
1 changed files with 3 additions and 0 deletions

View File

@ -382,6 +382,9 @@ public class JmsFactory {
private static boolean isSSL(URI uri) { private static boolean isSSL(URI uri) {
try { try {
CompositeData compositeData = URISupport.parseComposite(uri); CompositeData compositeData = URISupport.parseComposite(uri);
if ("ssl".equals(compositeData.getScheme())) {
return true;
}
for(URI component : compositeData.getComponents()){ for(URI component : compositeData.getComponents()){
if ("ssl".equals(component.getScheme())) { if ("ssl".equals(component.getScheme())) {
return true; return true;