You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2007/08/14 16:44:51 UTC

svn commit: r565778 - in /activemq/activemq-cpp/trunk/src/decaf/src/main/decaf: io/ net/

Author: tabish
Date: Tue Aug 14 07:44:49 2007
New Revision: 565778

URL: http://svn.apache.org/viewvc?view=rev&rev=565778
Log:
http://issues.apache.org/activemq/browse/AMQCPP-103

Adding start of URI class and URL class plus associated classes.

Added:
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/InterruptedIOException.h
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/BindException.h
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/ConnectException.h
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/HttpRetryException.h
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/MalformedURLException.h
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/NoRouteToHostException.h
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/PortUnreachableException.h
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/ProtocolException.h
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/SocketTimeoutException.h
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/URL.cpp
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/URL.h
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/UnknownHostException.h
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/UnknownServiceException.h
Modified:
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/IOException.h
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/SocketException.h
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/URI.h
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/URISyntaxException.h

Modified: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/IOException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/IOException.h?view=diff&rev=565778&r1=565777&r2=565778
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/IOException.h (original)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/IOException.h Tue Aug 14 07:44:49 2007
@@ -25,8 +25,7 @@
     /*
      * Signals that an I/O exception of some sort has occurred.
      */
-    class DECAF_API IOException : public lang::Exception
-    {
+    class DECAF_API IOException : public lang::Exception {
     public:
 
         /**
@@ -39,8 +38,7 @@
          * @param ex the exception to copy
          */
         IOException( const lang::Exception& ex ) throw()
-        : lang::Exception()
-        {
+        : lang::Exception() {
             *(lang::Exception*)this = ex;
         }
 
@@ -49,8 +47,7 @@
          * @param ex the exception to copy, which is an instance of this type
          */
         IOException( const IOException& ex ) throw()
-        : lang::Exception()
-        {
+        : lang::Exception() {
             *(lang::Exception*)this = ex;
         }
 
@@ -62,8 +59,7 @@
          */
         IOException( const char* file, const int lineNumber,
                      const char* msg, ... ) throw()
-        : lang::Exception()
-        {
+        : lang::Exception() {
             va_list vargs;
             va_start( vargs, msg );
             buildMessage( msg, vargs );
@@ -77,7 +73,7 @@
          * to preserve the type of the original exception as well as the message.
          * All subclasses should override.
          */
-        virtual IOException* clone() const{
+        virtual IOException* clone() const {
             return new IOException( *this );
         }
 

Added: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/InterruptedIOException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/InterruptedIOException.h?view=auto&rev=565778
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/InterruptedIOException.h (added)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/io/InterruptedIOException.h Tue Aug 14 07:44:49 2007
@@ -0,0 +1,87 @@
+/*
+ * 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.
+ */
+#ifndef _DECAF_IO_INTERRUPTEDIOEXCEPTION_H
+#define _DECAF_IO_INTERRUPTEDIOEXCEPTION_H
+
+#include <decaf/lang/Exception.h>
+#include <decaf/io/IOException.h>
+
+namespace decaf{
+namespace io{
+
+    /*
+     * Signals that an I/O exception of some sort has occurred.
+     */
+    class DECAF_API InterruptedIOException : public io::IOException {
+    public:
+
+        /**
+         * Default Constructor
+         */
+        InterruptedIOException() throw() {}
+
+        /**
+         * Copy Constructor
+         * @param ex the exception to copy
+         */
+        InterruptedIOException( const lang::Exception& ex ) throw()
+        : IOException() {
+            *(lang::Exception*)this = ex;
+        }
+
+        /**
+         * Copy Constructor
+         * @param ex the exception to copy, which is an instance of this type
+         */
+        InterruptedIOException( const InterruptedIOException& ex ) throw()
+        : IOException() {
+            *(lang::Exception*)this = ex;
+        }
+
+        /**
+         * Consturctor
+         * @param file name of the file were the exception occured.
+         * @param lineNumber line where the exception occured
+         * @param msg the message that was generated
+         */
+        InterruptedIOException( const char* file, const int lineNumber,
+                                const char* msg, ... ) throw()
+        : IOException() {
+            va_list vargs;
+            va_start( vargs, msg );
+            buildMessage( msg, vargs );
+
+            // Set the first mark for this exception.
+            setMark( file, lineNumber );
+        }
+
+        /**
+         * Clones this exception.  This is useful for cases where you need
+         * to preserve the type of the original exception as well as the message.
+         * All subclasses should override.
+         */
+        virtual InterruptedIOException* clone() const {
+            return new IOException( *this );
+        }
+
+        virtual ~InterruptedIOException() throw() {}
+
+    };
+
+}}
+
+#endif /*_DECAF_IO_INTERRUPTEDIOEXCEPTION_H*/

Added: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/BindException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/BindException.h?view=auto&rev=565778
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/BindException.h (added)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/BindException.h Tue Aug 14 07:44:49 2007
@@ -0,0 +1,93 @@
+/*
+ * 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.
+ */
+
+#ifndef _DECAF_NET_BINDEXCEPTION_H_
+#define _DECAF_NET_BINDEXCEPTION_H_
+
+#include <decaf/util/Config.h>
+#include <decaf/net/SocketException.h>
+
+namespace decaf{
+namespace net{
+
+    class DECAF_API BindException : public SocketException {
+    public:
+
+        /**
+         * Default Constructor
+         */
+        BindException() throw() {}
+
+        /**
+         * Conversion Constructor from some other Exception
+         * @param An exception that should become this type of Exception
+         */
+        BindException( const Exception& ex ) throw()
+        : SocketException()
+        {
+            *(Exception*)this = ex;
+        }
+
+        /**
+         * Copy Constructor
+         */
+        BindException( const BindException& ex ) throw()
+        : SocketException()
+        {
+            *(Exception*)this = ex;
+        }
+
+        /**
+         * Constructor - Initializes the file name and line number where
+         * this message occured.  Sets the message to report, using an
+         * optional list of arguments to parse into the message
+         * @param file name where exception occurs
+         * @param line number where the exception occurred.
+         * @param message to report
+         * @param list of primitives that are formatted into the message
+         */
+        BindException( const char* file, const int lineNumber,
+                            const char* msg, ... ) throw ()
+        : SocketException()
+        {
+            va_list vargs ;
+            va_start( vargs, msg );
+            buildMessage( msg, vargs );
+
+            // Set the first mark for this exception.
+            setMark( file, lineNumber );
+        }
+
+        /**
+         * Clones this exception.  This is useful for cases where you need
+         * to preserve the type of the original exception as well as the message.
+         * All subclasses should override.
+         */
+        virtual BindException* clone() const {
+            return new BindException( *this );
+        }
+
+        /**
+         * Destructor
+         */
+        virtual ~BindException() throw() {}
+
+    };
+
+}}
+
+#endif /*_DECAF_NET_BINDEXCEPTION_H_*/

Added: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/ConnectException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/ConnectException.h?view=auto&rev=565778
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/ConnectException.h (added)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/ConnectException.h Tue Aug 14 07:44:49 2007
@@ -0,0 +1,93 @@
+/*
+ * 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.
+ */
+
+#ifndef _DECAF_NET_CONNECTEXCEPTION_H_
+#define _DECAF_NET_CONNECTEXCEPTION_H_
+
+#include <decaf/util/Config.h>
+#include <decaf/net/SocketException.h>
+
+namespace decaf{
+namespace net{
+
+    class DECAF_API ConnectException : public SocketException {
+    public:
+
+        /**
+         * Default Constructor
+         */
+        ConnectException() throw() {}
+
+        /**
+         * Conversion Constructor from some other Exception
+         * @param An exception that should become this type of Exception
+         */
+        ConnectException( const Exception& ex ) throw()
+        : SocketException()
+        {
+            *(Exception*)this = ex;
+        }
+
+        /**
+         * Copy Constructor
+         */
+        ConnectException( const ConnectException& ex ) throw()
+        : SocketException()
+        {
+            *(Exception*)this = ex;
+        }
+
+        /**
+         * Constructor - Initializes the file name and line number where
+         * this message occured.  Sets the message to report, using an
+         * optional list of arguments to parse into the message
+         * @param file name where exception occurs
+         * @param line number where the exception occurred.
+         * @param message to report
+         * @param list of primitives that are formatted into the message
+         */
+        ConnectException( const char* file, const int lineNumber,
+                            const char* msg, ... ) throw ()
+        : SocketException()
+        {
+            va_list vargs ;
+            va_start( vargs, msg );
+            buildMessage( msg, vargs );
+
+            // Set the first mark for this exception.
+            setMark( file, lineNumber );
+        }
+
+        /**
+         * Clones this exception.  This is useful for cases where you need
+         * to preserve the type of the original exception as well as the message.
+         * All subclasses should override.
+         */
+        virtual ConnectException* clone() const {
+            return new ConnectException( *this );
+        }
+
+        /**
+         * Destructor
+         */
+        virtual ~ConnectException() throw() {}
+
+    };
+
+}}
+
+#endif /*_DECAF_NET_CONNECTEXCEPTION_H_*/

Added: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/HttpRetryException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/HttpRetryException.h?view=auto&rev=565778
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/HttpRetryException.h (added)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/HttpRetryException.h Tue Aug 14 07:44:49 2007
@@ -0,0 +1,93 @@
+/*
+ * 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.
+ */
+
+#ifndef _DECAF_NET_HTTPRETRYEXCEPTION_H_
+#define _DECAF_NET_HTTPRETRYEXCEPTION_H_
+
+#include <decaf/util/Config.h>
+#include <decaf/io/IOException.h>
+
+namespace decaf{
+namespace net{
+
+    class DECAF_API HttpRetryException : public io::IOException {
+    public:
+
+        /**
+         * Default Constructor
+         */
+        HttpRetryException() throw() {}
+
+        /**
+         * Conversion Constructor from some other Exception
+         * @param An exception that should become this type of Exception
+         */
+        HttpRetryException( const Exception& ex ) throw()
+        : io::IOException()
+        {
+            *(Exception*)this = ex;
+        }
+
+        /**
+         * Copy Constructor
+         */
+        HttpRetryException( const HttpRetryException& ex ) throw()
+        : io::IOException()
+        {
+            *(Exception*)this = ex;
+        }
+
+        /**
+         * Constructor - Initializes the file name and line number where
+         * this message occured.  Sets the message to report, using an
+         * optional list of arguments to parse into the message
+         * @param file name where exception occurs
+         * @param line number where the exception occurred.
+         * @param message to report
+         * @param list of primitives that are formatted into the message
+         */
+        HttpRetryException( const char* file, const int lineNumber,
+                            const char* msg, ... ) throw ()
+        : io::IOException()
+        {
+            va_list vargs ;
+            va_start( vargs, msg );
+            buildMessage( msg, vargs );
+
+            // Set the first mark for this exception.
+            setMark( file, lineNumber );
+        }
+
+        /**
+         * Clones this exception.  This is useful for cases where you need
+         * to preserve the type of the original exception as well as the message.
+         * All subclasses should override.
+         */
+        virtual HttpRetryException* clone() const {
+            return new HttpRetryException( *this );
+        }
+
+        /**
+         * Destructor
+         */
+        virtual ~HttpRetryException() throw() {}
+
+    };
+
+}}
+
+#endif /*_DECAF_NET_HTTPRETRYEXCEPTION_H_*/

Added: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/MalformedURLException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/MalformedURLException.h?view=auto&rev=565778
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/MalformedURLException.h (added)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/MalformedURLException.h Tue Aug 14 07:44:49 2007
@@ -0,0 +1,93 @@
+/*
+ * 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.
+ */
+
+#ifndef _DECAF_NET_MALFORMEDURLEXCEPTION_H_
+#define _DECAF_NET_MALFORMEDURLEXCEPTION_H_
+
+#include <decaf/util/Config.h>
+#include <decaf/io/IOException.h>
+
+namespace decaf{
+namespace net{
+
+    class DECAF_API MalformedURLException  : public io::IOException {
+    public:
+
+        /**
+         * Default Constructor
+         */
+        MalformedURLException() throw() {}
+
+        /**
+         * Conversion Constructor from some other Exception
+         * @param An exception that should become this type of Exception
+         */
+        MalformedURLException( const Exception& ex ) throw()
+        : io::IOException()
+        {
+            *(Exception*)this = ex;
+        }
+
+        /**
+         * Copy Constructor
+         */
+        MalformedURLException( const MalformedURLException& ex ) throw()
+        : io::IOException()
+        {
+            *(Exception*)this = ex;
+        }
+
+        /**
+         * Constructor - Initializes the file name and line number where
+         * this message occured.  Sets the message to report, using an
+         * optional list of arguments to parse into the message
+         * @param file name where exception occurs
+         * @param line number where the exception occurred.
+         * @param message to report
+         * @param list of primitives that are formatted into the message
+         */
+        MalformedURLException( const char* file, const int lineNumber,
+                               const char* msg, ... ) throw ()
+        : io::IOException()
+        {
+            va_list vargs ;
+            va_start( vargs, msg );
+            buildMessage( msg, vargs );
+
+            // Set the first mark for this exception.
+            setMark( file, lineNumber );
+        }
+
+        /**
+         * Clones this exception.  This is useful for cases where you need
+         * to preserve the type of the original exception as well as the message.
+         * All subclasses should override.
+         */
+        virtual MalformedURLException* clone() const {
+            return new MalformedURLException( *this );
+        }
+
+        /**
+         * Destructor
+         */
+        virtual ~MalformedURLException() throw() {}
+
+    };
+
+}}
+
+#endif /*_DECAF_NET_MALFORMEDURLEXCEPTION_H_*/

Added: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/NoRouteToHostException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/NoRouteToHostException.h?view=auto&rev=565778
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/NoRouteToHostException.h (added)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/NoRouteToHostException.h Tue Aug 14 07:44:49 2007
@@ -0,0 +1,93 @@
+/*
+ * 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.
+ */
+
+#ifndef _DECAF_NET_NOROUTETOHOSTEXCEPTION_H_
+#define _DECAF_NET_NOROUTETOHOSTEXCEPTION_H_
+
+#include <decaf/util/Config.h>
+#include <decaf/net/SocketException.h>
+
+namespace decaf{
+namespace net{
+
+    class DECAF_API NoRouteToHostException : public SocketException {
+    public:
+
+        /**
+         * Default Constructor
+         */
+        NoRouteToHostException() throw() {}
+
+        /**
+         * Conversion Constructor from some other Exception
+         * @param An exception that should become this type of Exception
+         */
+        NoRouteToHostException( const Exception& ex ) throw()
+        : SocketException()
+        {
+            *(Exception*)this = ex;
+        }
+
+        /**
+         * Copy Constructor
+         */
+        NoRouteToHostException( const NoRouteToHostException& ex ) throw()
+        : SocketException()
+        {
+            *(Exception*)this = ex;
+        }
+
+        /**
+         * Constructor - Initializes the file name and line number where
+         * this message occured.  Sets the message to report, using an
+         * optional list of arguments to parse into the message
+         * @param file name where exception occurs
+         * @param line number where the exception occurred.
+         * @param message to report
+         * @param list of primitives that are formatted into the message
+         */
+        NoRouteToHostException( const char* file, const int lineNumber,
+                            const char* msg, ... ) throw ()
+        : SocketException()
+        {
+            va_list vargs ;
+            va_start( vargs, msg );
+            buildMessage( msg, vargs );
+
+            // Set the first mark for this exception.
+            setMark( file, lineNumber );
+        }
+
+        /**
+         * Clones this exception.  This is useful for cases where you need
+         * to preserve the type of the original exception as well as the message.
+         * All subclasses should override.
+         */
+        virtual NoRouteToHostException* clone() const {
+            return new NoRouteToHostException( *this );
+        }
+
+        /**
+         * Destructor
+         */
+        virtual ~NoRouteToHostException() throw() {}
+
+    };
+
+}}
+
+#endif /*_DECAF_NET_NOROUTETOHOSTEXCEPTION_H_*/

Added: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/PortUnreachableException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/PortUnreachableException.h?view=auto&rev=565778
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/PortUnreachableException.h (added)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/PortUnreachableException.h Tue Aug 14 07:44:49 2007
@@ -0,0 +1,93 @@
+/*
+ * 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.
+ */
+
+#ifndef _DECAF_NET_PORTUNREACHABLEEXCEPTION_H_
+#define _DECAF_NET_PORTUNREACHABLEEXCEPTION_H_
+
+#include <decaf/util/Config.h>
+#include <decaf/net/SocketException.h>
+
+namespace decaf{
+namespace net{
+
+    class DECAF_API PortUnreachableException : public SocketException {
+    public:
+
+        /**
+         * Default Constructor
+         */
+        PortUnreachableException() throw() {}
+
+        /**
+         * Conversion Constructor from some other Exception
+         * @param An exception that should become this type of Exception
+         */
+        PortUnreachableException( const Exception& ex ) throw()
+        : SocketException()
+        {
+            *(Exception*)this = ex;
+        }
+
+        /**
+         * Copy Constructor
+         */
+        PortUnreachableException( const PortUnreachableException& ex ) throw()
+        : SocketException()
+        {
+            *(Exception*)this = ex;
+        }
+
+        /**
+         * Constructor - Initializes the file name and line number where
+         * this message occured.  Sets the message to report, using an
+         * optional list of arguments to parse into the message
+         * @param file name where exception occurs
+         * @param line number where the exception occurred.
+         * @param message to report
+         * @param list of primitives that are formatted into the message
+         */
+        PortUnreachableException( const char* file, const int lineNumber,
+                            const char* msg, ... ) throw ()
+        : SocketException()
+        {
+            va_list vargs ;
+            va_start( vargs, msg );
+            buildMessage( msg, vargs );
+
+            // Set the first mark for this exception.
+            setMark( file, lineNumber );
+        }
+
+        /**
+         * Clones this exception.  This is useful for cases where you need
+         * to preserve the type of the original exception as well as the message.
+         * All subclasses should override.
+         */
+        virtual PortUnreachableException* clone() const {
+            return new PortUnreachableException( *this );
+        }
+
+        /**
+         * Destructor
+         */
+        virtual ~PortUnreachableException() throw() {}
+
+    };
+
+}}
+
+#endif /*_DECAF_NET_PORTUNREACHABLEEXCEPTION_H_*/

Added: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/ProtocolException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/ProtocolException.h?view=auto&rev=565778
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/ProtocolException.h (added)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/ProtocolException.h Tue Aug 14 07:44:49 2007
@@ -0,0 +1,93 @@
+/*
+ * 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.
+ */
+
+#ifndef _DECAF_NET_PROTOCOLEXCEPTION_H_
+#define _DECAF_NET_PROTOCOLEXCEPTION_H_
+
+#include <decaf/util/Config.h>
+#include <decaf/io/IOException.h>
+
+namespace decaf{
+namespace net{
+
+    class DECAF_API ProtocolException : public io::IOException {
+    public:
+
+        /**
+         * Default Constructor
+         */
+        ProtocolException() throw() {}
+
+        /**
+         * Conversion Constructor from some other Exception
+         * @param An exception that should become this type of Exception
+         */
+        ProtocolException( const Exception& ex ) throw()
+        : io::IOException()
+        {
+            *(Exception*)this = ex;
+        }
+
+        /**
+         * Copy Constructor
+         */
+        ProtocolException( const ProtocolException& ex ) throw()
+        : io::IOException()
+        {
+            *(Exception*)this = ex;
+        }
+
+        /**
+         * Constructor - Initializes the file name and line number where
+         * this message occured.  Sets the message to report, using an
+         * optional list of arguments to parse into the message
+         * @param file name where exception occurs
+         * @param line number where the exception occurred.
+         * @param message to report
+         * @param list of primitives that are formatted into the message
+         */
+        ProtocolException( const char* file, const int lineNumber,
+                            const char* msg, ... ) throw ()
+        : io::IOException()
+        {
+            va_list vargs ;
+            va_start( vargs, msg );
+            buildMessage( msg, vargs );
+
+            // Set the first mark for this exception.
+            setMark( file, lineNumber );
+        }
+
+        /**
+         * Clones this exception.  This is useful for cases where you need
+         * to preserve the type of the original exception as well as the message.
+         * All subclasses should override.
+         */
+        virtual ProtocolException* clone() const {
+            return new ProtocolException( *this );
+        }
+
+        /**
+         * Destructor
+         */
+        virtual ~ProtocolException() throw() {}
+
+    };
+
+}}
+
+#endif /*_DECAF_NET_PROTOCOLEXCEPTION_H_*/

Modified: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/SocketException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/SocketException.h?view=diff&rev=565778&r1=565777&r2=565778
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/SocketException.h (original)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/SocketException.h Tue Aug 14 07:44:49 2007
@@ -30,23 +30,23 @@
     public:
 
         SocketException() throw() {}
+
         SocketException( const lang::Exception& ex ) throw()
-        : io::IOException()
-        {
+        : io::IOException() {
             *(lang::Exception*)this = ex;
         }
+
         SocketException( const SocketException& ex ) throw()
-        : io::IOException()
-        {
+        : io::IOException() {
             *(lang::Exception*)this = ex;
         }
+
         SocketException( const char* file, const int lineNumber,
                          const char* msg, ...) throw()
-        : io::IOException()
-        {
+        : io::IOException() {
             va_list vargs;
-            va_start(vargs, msg);
-            buildMessage(msg, vargs);
+            va_start( vargs, msg );
+            buildMessage( msg, vargs );
 
             // Set the first mark for this exception.
             setMark( file, lineNumber );
@@ -57,7 +57,7 @@
          * to preserve the type of the original exception as well as the message.
          * All subclasses should override.
          */
-        virtual SocketException* clone() const{
+        virtual SocketException* clone() const {
             return new SocketException( *this );
         }
 

Added: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/SocketTimeoutException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/SocketTimeoutException.h?view=auto&rev=565778
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/SocketTimeoutException.h (added)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/SocketTimeoutException.h Tue Aug 14 07:44:49 2007
@@ -0,0 +1,93 @@
+/*
+ * 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.
+ */
+
+#ifndef _DECAF_NET_SOCKETTIMEOUTEXCEPTION_H_
+#define _DECAF_NET_SOCKETTIMEOUTEXCEPTION_H_
+
+#include <decaf/util/Config.h>
+#include <decaf/io/InterruptedIOException.h>
+
+namespace decaf{
+namespace net{
+
+    class DECAF_API SocketTimeoutException : public io::InterruptedIOException {
+    public:
+
+        /**
+         * Default Constructor
+         */
+        SocketTimeoutException() throw() {}
+
+        /**
+         * Conversion Constructor from some other Exception
+         * @param An exception that should become this type of Exception
+         */
+        SocketTimeoutException( const Exception& ex ) throw()
+        : io::InterruptedIOException()
+        {
+            *(Exception*)this = ex;
+        }
+
+        /**
+         * Copy Constructor
+         */
+        SocketTimeoutException( const SocketTimeoutException& ex ) throw()
+        : io::InterruptedIOException()
+        {
+            *(Exception*)this = ex;
+        }
+
+        /**
+         * Constructor - Initializes the file name and line number where
+         * this message occured.  Sets the message to report, using an
+         * optional list of arguments to parse into the message
+         * @param file name where exception occurs
+         * @param line number where the exception occurred.
+         * @param message to report
+         * @param list of primitives that are formatted into the message
+         */
+        SocketTimeoutException( const char* file, const int lineNumber,
+                            const char* msg, ... ) throw ()
+        : io::InterruptedIOException()
+        {
+            va_list vargs ;
+            va_start( vargs, msg );
+            buildMessage( msg, vargs );
+
+            // Set the first mark for this exception.
+            setMark( file, lineNumber );
+        }
+
+        /**
+         * Clones this exception.  This is useful for cases where you need
+         * to preserve the type of the original exception as well as the message.
+         * All subclasses should override.
+         */
+        virtual SocketTimeoutException* clone() const {
+            return new SocketTimeoutException( *this );
+        }
+
+        /**
+         * Destructor
+         */
+        virtual ~SocketTimeoutException() throw() {}
+
+    };
+
+}}
+
+#endif /*_DECAF_NET_SOCKETTIMEOUTEXCEPTION_H_*/

Modified: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/URI.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/URI.h?view=diff&rev=565778&r1=565777&r2=565778
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/URI.h (original)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/URI.h Tue Aug 14 07:44:49 2007
@@ -22,6 +22,8 @@
 #include <decaf/lang/Comparable.h>
 #include <decaf/lang/exceptions/IllegalArgumentException.h>
 #include <decaf/net/URISyntaxException.h>
+#include <decaf/net/MalformedURLException.h>
+#include <decaf/net/URL.h>
 #include <string>
 
 namespace decaf{
@@ -402,9 +404,8 @@
          * @throws MalformedURLException - If a protocol handler for the URL could not
          * be found, or if some other error occurred while constructing the URL
          */
-// TODO
-//        URL toURL() const
-//            throw ( MalformedURLException, lang::exceptions::IllegalArgumentException );
+        URL toURL() const
+            throw ( MalformedURLException, lang::exceptions::IllegalArgumentException );
 
     public:   // Static Methods
 

Modified: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/URISyntaxException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/URISyntaxException.h?view=diff&rev=565778&r1=565777&r2=565778
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/URISyntaxException.h (original)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/URISyntaxException.h Tue Aug 14 07:44:49 2007
@@ -24,7 +24,7 @@
 namespace decaf{
 namespace net{
 
-    class URISyntaxException : public lang::Exception {
+    class DECAF_API URISyntaxException : public lang::Exception {
     public:
 
         /**

Added: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/URL.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/URL.cpp?view=auto&rev=565778
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/URL.cpp (added)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/URL.cpp Tue Aug 14 07:44:49 2007
@@ -0,0 +1,25 @@
+/*
+ * 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.
+ */
+
+#include "URL.h"
+
+using namespace decaf;
+using namespace decaf::net
+
+////////////////////////////////////////////////////////////////////////////////
+URL::URL() {
+}

Added: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/URL.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/URL.h?view=auto&rev=565778
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/URL.h (added)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/URL.h Tue Aug 14 07:44:49 2007
@@ -0,0 +1,36 @@
+/*
+ * 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.
+ */
+
+#ifndef _DECAF_NET_URL_H_
+#define _DECAF_NET_URL_H_
+
+#include <decaf/util/Config.h>
+
+namespace decaf{
+namespace net{
+
+    class DECAF_API URL {
+    public:
+
+        URL();
+        virtual ~URL() {}
+
+    };
+
+}}
+
+#endif /*_DECAF_NET_URL_H_*/

Added: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/UnknownHostException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/UnknownHostException.h?view=auto&rev=565778
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/UnknownHostException.h (added)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/UnknownHostException.h Tue Aug 14 07:44:49 2007
@@ -0,0 +1,93 @@
+/*
+ * 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.
+ */
+
+#ifndef _DECAF_NET_UNKNOWNHOSTEXCEPTION_H_
+#define _DECAF_NET_UNKNOWNHOSTEXCEPTION_H_
+
+#include <decaf/util/Config.h>
+#include <decaf/io/IOException.h>
+
+namespace decaf{
+namespace net{
+
+    class DECAF_API UnknownHostException : public io::IOException {
+    public:
+
+        /**
+         * Default Constructor
+         */
+        UnknownHostException() throw() {}
+
+        /**
+         * Conversion Constructor from some other Exception
+         * @param An exception that should become this type of Exception
+         */
+        UnknownHostException( const Exception& ex ) throw()
+        : io::IOException()
+        {
+            *(Exception*)this = ex;
+        }
+
+        /**
+         * Copy Constructor
+         */
+        UnknownHostException( const UnknownHostException& ex ) throw()
+        : io::IOException()
+        {
+            *(Exception*)this = ex;
+        }
+
+        /**
+         * Constructor - Initializes the file name and line number where
+         * this message occured.  Sets the message to report, using an
+         * optional list of arguments to parse into the message
+         * @param file name where exception occurs
+         * @param line number where the exception occurred.
+         * @param message to report
+         * @param list of primitives that are formatted into the message
+         */
+        UnknownHostException( const char* file, const int lineNumber,
+                            const char* msg, ... ) throw ()
+        : io::IOException()
+        {
+            va_list vargs ;
+            va_start( vargs, msg );
+            buildMessage( msg, vargs );
+
+            // Set the first mark for this exception.
+            setMark( file, lineNumber );
+        }
+
+        /**
+         * Clones this exception.  This is useful for cases where you need
+         * to preserve the type of the original exception as well as the message.
+         * All subclasses should override.
+         */
+        virtual UnknownHostException* clone() const {
+            return new UnknownHostException( *this );
+        }
+
+        /**
+         * Destructor
+         */
+        virtual ~UnknownHostException() throw() {}
+
+    };
+
+}}
+
+#endif /*_DECAF_NET_UNKNOWNHOSTEXCEPTION_H_*/

Added: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/UnknownServiceException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/UnknownServiceException.h?view=auto&rev=565778
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/UnknownServiceException.h (added)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/UnknownServiceException.h Tue Aug 14 07:44:49 2007
@@ -0,0 +1,93 @@
+/*
+ * 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.
+ */
+
+#ifndef _DECAF_NET_UNKNOWNSERVICEEXCEPTION_H_
+#define _DECAF_NET_UNKNOWNSERVICEEXCEPTION_H_
+
+#include <decaf/util/Config.h>
+#include <decaf/io/IOException.h>
+
+namespace decaf{
+namespace net{
+
+    class DECAF_API UnknownServiceException : public io::IOException {
+    public:
+
+        /**
+         * Default Constructor
+         */
+        UnknownServiceException() throw() {}
+
+        /**
+         * Conversion Constructor from some other Exception
+         * @param An exception that should become this type of Exception
+         */
+        UnknownServiceException( const Exception& ex ) throw()
+        : io::IOException()
+        {
+            *(Exception*)this = ex;
+        }
+
+        /**
+         * Copy Constructor
+         */
+        UnknownServiceException( const UnknownServiceException& ex ) throw()
+        : io::IOException()
+        {
+            *(Exception*)this = ex;
+        }
+
+        /**
+         * Constructor - Initializes the file name and line number where
+         * this message occured.  Sets the message to report, using an
+         * optional list of arguments to parse into the message
+         * @param file name where exception occurs
+         * @param line number where the exception occurred.
+         * @param message to report
+         * @param list of primitives that are formatted into the message
+         */
+        UnknownServiceException( const char* file, const int lineNumber,
+                            const char* msg, ... ) throw ()
+        : io::IOException()
+        {
+            va_list vargs ;
+            va_start( vargs, msg );
+            buildMessage( msg, vargs );
+
+            // Set the first mark for this exception.
+            setMark( file, lineNumber );
+        }
+
+        /**
+         * Clones this exception.  This is useful for cases where you need
+         * to preserve the type of the original exception as well as the message.
+         * All subclasses should override.
+         */
+        virtual UnknownServiceException* clone() const {
+            return new UnknownServiceException( *this );
+        }
+
+        /**
+         * Destructor
+         */
+        virtual ~UnknownServiceException() throw() {}
+
+    };
+
+}}
+
+#endif /*_DECAF_NET_UNKNOWNSERVICEEXCEPTION_H_*/