From 999b19703dca14e7209230e07ea145ee084e528f Mon Sep 17 00:00:00 2001 From: Arnaud Simon Date: Mon, 6 Aug 2007 10:32:50 +0000 Subject: git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@563097 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/qpidity/url/AMQBindingURL.java | 261 +++++++++++++++++++++ .../java/org/apache/qpidity/url/BindingURL.java | 53 +++++ .../java/org/apache/qpidity/url/URLHelper.java | 169 +++++++++++++ .../org/apache/qpidity/url/URLSyntaxException.java | 94 ++++++++ 4 files changed, 577 insertions(+) create mode 100644 qpid/java/common/src/main/java/org/apache/qpidity/url/AMQBindingURL.java create mode 100644 qpid/java/common/src/main/java/org/apache/qpidity/url/BindingURL.java create mode 100644 qpid/java/common/src/main/java/org/apache/qpidity/url/URLHelper.java create mode 100644 qpid/java/common/src/main/java/org/apache/qpidity/url/URLSyntaxException.java (limited to 'qpid/java/common/src') diff --git a/qpid/java/common/src/main/java/org/apache/qpidity/url/AMQBindingURL.java b/qpid/java/common/src/main/java/org/apache/qpidity/url/AMQBindingURL.java new file mode 100644 index 0000000000..0edf9ac21b --- /dev/null +++ b/qpid/java/common/src/main/java/org/apache/qpidity/url/AMQBindingURL.java @@ -0,0 +1,261 @@ +/* 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. + */ +package org.apache.qpidity.url; + +import org.apache.qpidity.exchange.ExchangeDefaults; +import org.slf4j.LoggerFactory; +import org.slf4j.Logger; + +import java.util.HashMap; +import java.net.URI; +import java.net.URISyntaxException; + +public class AMQBindingURL implements BindingURL +{ + private static final Logger _logger = LoggerFactory.getLogger(AMQBindingURL.class); + + String _url; + String _exchangeClass; + String _exchangeName; + String _destinationName; + String _queueName; + private HashMap _options; + + public AMQBindingURL(String url) throws URLSyntaxException + { + // format: + // :///[]/[]?