Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: joist/java/org/joist/util URL.java

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

CVS update: joist/java/org/joist/util URL.java

Author stack
Full name Michael Stack
Date 2000-11-28 17:58:07 PST
Message User: stack
  Date: 00/11/28 17:58:07

  Modified: java/org/joist/util URL.java
  Log:
  Added javadoc because a user couldn't figure out what getProtocol does from reading what was there previous
  
  Revision Changes Path
  1.22 +9 -6 joist/java/org/joist​/util/URL.java
  
  Index: URL.java
  ====================​====================​====================​=======
  RCS file: /cvs/joist/java/org/​joist/util/URL.java,​v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- URL.java 2000/11/29 01:54:34 1.21
  +++ URL.java 2000/11/29 01:58:07 1.22
  @@ -63,7 +63,7 @@
    * Parses and builds URLs
    *
    * @author David C. Pellegrini <A HREF="mailto:davidp@​dataweb-systems.com"​>davidp@dataweb-s​ystems.com</A>​
  - * @version $Revision: 1.21 $
  + * @version $Revision: 1.22 $
    *
    * Copyright (c) 1999 dataweb systems, inc.
    * Copyright (c) 1999, 2000 Collab.Net, Inc.
  @@ -232,7 +232,6 @@
           return port;
        }
       
  -
       /**
        * Get protocol (i.e. http or https).
        *
  @@ -245,10 +244,14 @@
       }
           
       /**
  - * Determines the protocol (http or https).
  - * <p>
  - * Throws exception if neither. Returns 'http' as default if passed
  - * null.
  + * Get protocol (i.e. http or https).
  + *
  + * This method is dumb. All it is doing is looking at the passed in
  + * protocol checking to see if it is http or https. If null, it will
  + * supply the default. The default is value of FORCE_SCHEME_KEY property
  + * or if not defined, it's 'http'. If passed protocol is not null, 'http'
  + * or 'https', it throws an exception. These checks are the value this
  + * method provides. Use it building urls.
        *
        * @param inProtocol Pass 'http' or 'https'. If null, we assume 'http'.
        *

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: joist/java/org/joist/util URL.java stack Michael Stack 2000-11-28 17:58:07 PST
Messages per page: