From: cvs@openprivacy.orgCVS update: talon/src/java/talon/util/net
Date:	Wednesday March 14, 19101 @ 17:33
Author:	burton
CVSWEB Options: -------------------
Main CVSWeb:     http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi
View this module:  http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/util/net
-----------------------------------
Update of /usr/local/cvs/public/talon/src/java/talon/util/net
In directory giga:/tmp/cvs-serv4084/src/java/talon/util/net
Modified Files:
        URI.java 
Log Message:
refactoring component package from interfaces to components
*****************************************************************
File:  talon/src/java/talon/util/net/URI.java
CVSWEB Options: -------------------
CVSWeb: Annotate this file:         http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/util/net/URI.java?annotate=1.3
CVSWeb: View this file:             http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/util/net/URI.java?rev=1.3&content-type=text/x-cvsweb-markup
CVSWeb: Diff to previous version:   http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/util/net/URI.java.diff?r1=1.3&r2=1.2
-----------------------------------
Index: talon/src/java/talon/util/net/URI.java
diff -u talon/src/java/talon/util/net/URI.java:1.2 talon/src/java/talon/util/net/URI.java:1.3
--- talon/src/java/talon/util/net/URI.java:1.2	Sun Feb 18 22:49:55 2001
+++ talon/src/java/talon/util/net/URI.java	Wed Mar 14 17:33:40 2001
@@ -23,7 +23,7 @@
  * TODO: use a regexp on the reference to verify it is a valid URI.
  *
  * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: URI.java,v 1.2 2001/02/19 06:49:55 burton Exp $
+ * @version $Id: URI.java,v 1.3 2001/03/15 01:33:40 burton Exp $
  */
 public class URI {
 
@@ -35,7 +35,7 @@
      * Noop constructor if called as a bean.
      *
      * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
-     * @version $Id: URI.java,v 1.2 2001/02/19 06:49:55 burton Exp $
+     * @version $Id: URI.java,v 1.3 2001/03/15 01:33:40 burton Exp $
      */
     public URI() { }
 
@@ -44,7 +44,7 @@
      * 
      *
      * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
-     * @version $Id: URI.java,v 1.2 2001/02/19 06:49:55 burton Exp $
+     * @version $Id: URI.java,v 1.3 2001/03/15 01:33:40 burton Exp $
      */
     public URI( String reference ) {
         this.reference = reference;
@@ -54,7 +54,7 @@
      *
      *
      * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
-     * @version $Id: URI.java,v 1.2 2001/02/19 06:49:55 burton Exp $
+     * @version $Id: URI.java,v 1.3 2001/03/15 01:33:40 burton Exp $
      */
     public URI( String reference,
                 boolean isURL ) {
@@ -67,17 +67,35 @@
     /**
      * @see Object.toString#
      * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
-     * @version $Id: URI.java,v 1.2 2001/02/19 06:49:55 burton Exp $
+     * @version $Id: URI.java,v 1.3 2001/03/15 01:33:40 burton Exp $
      */
     public String toString() {
         return this.reference;
     }
 
     /**
+     * @see Object
+     * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+     * @version $Id: URI.java,v 1.3 2001/03/15 01:33:40 burton Exp $
+     */
+    public boolean equals( Object obj ) {
+
+        if ( obj.getClass().equals( obj.getClass() ) ) {
+
+            URI uri = (URI)obj;
+
+            return uri.toString().equals( this.toString() );
+            
+        } 
+
+        return false;
+    }
+    
+    /**
      * Return true if this URL is network locatable.
      *
      * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
-     * @version $Id: URI.java,v 1.2 2001/02/19 06:49:55 burton Exp $
+     * @version $Id: URI.java,v 1.3 2001/03/15 01:33:40 burton Exp $
      */
     public boolean isURL() {
         return this.isURL;
@@ -88,7 +106,7 @@
      *
      *
      * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
-     * @version $Id: URI.java,v 1.2 2001/02/19 06:49:55 burton Exp $
+     * @version $Id: URI.java,v 1.3 2001/03/15 01:33:40 burton Exp $
      */
     public String getReference() { 
         return this.reference;
@@ -98,7 +116,7 @@
      *
      *
      * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
-     * @version $Id: URI.java,v 1.2 2001/02/19 06:49:55 burton Exp $
+     * @version $Id: URI.java,v 1.3 2001/03/15 01:33:40 burton Exp $
      */
     public void setReference( String reference ) { 
         this.reference = reference;
@@ -111,7 +129,7 @@
      * scheme ->  http
      *
      * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
-     * @version $Id: URI.java,v 1.2 2001/02/19 06:49:55 burton Exp $
+     * @version $Id: URI.java,v 1.3 2001/03/15 01:33:40 burton Exp $
      */
     public String getScheme() {
 
This archive was generated by hypermail 2b30 : Wed Mar 14 2001 - 17:36:12 PST