diff options
Diffstat (limited to 'java/common/src/main/java/org/apache/qpid/url/BindingURLParser.java')
-rw-r--r-- | java/common/src/main/java/org/apache/qpid/url/BindingURLParser.java | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/java/common/src/main/java/org/apache/qpid/url/BindingURLParser.java b/java/common/src/main/java/org/apache/qpid/url/BindingURLParser.java index 5d26e7e65b..7fe7d2e1da 100644 --- a/java/common/src/main/java/org/apache/qpid/url/BindingURLParser.java +++ b/java/common/src/main/java/org/apache/qpid/url/BindingURLParser.java @@ -1,4 +1,25 @@ package org.apache.qpid.url; +/* + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ + import java.net.URISyntaxException; import java.util.ArrayList; @@ -23,7 +44,7 @@ public class BindingURLParser private static final char COLON_CHAR = ':'; private static final char END_OF_URL_MARKER_CHAR = '%'; - private static final Logger _logger = LoggerFactory.getLogger(BindingURLImpl.class); + private static final Logger _logger = LoggerFactory.getLogger(BindingURLParser.class); private char[] _url; private AMQBindingURL _bindingURL; @@ -396,7 +417,7 @@ public class BindingURLParser { if (_bindingURL.containsOption(BindingURL.OPTION_CLIENTID) && _bindingURL.containsOption(BindingURL.OPTION_SUBSCRIPTION)) { - queueName = _bindingURL.getOption(BindingURL.OPTION_CLIENTID + ":" + BindingURL.OPTION_SUBSCRIPTION); + queueName = _bindingURL.getOption(BindingURL.OPTION_CLIENTID) + ":" + _bindingURL.getOption(BindingURL.OPTION_SUBSCRIPTION); } else { |