Project

General

Profile

« Previous | Next » 

Revision 542

Added by berkley about 24 years ago

updated javadoc documentation

View differences:

src/edu/ucsb/nceas/metacat/MetacatURL.java
30 30
   * This constructor takes a string url and parses it according to the  
31 31
   * following rules.  
32 32
   * 1) The name of the url is the text before the "://" symbol.
33
   * 2) Parameter names are written first and are terminated with the # symbol
33
   * 2) Parameter names are written first and are terminated with the = symbol
34 34
   * 3) Parameter values come 2nd and are terminated with an & except for the
35 35
   *    last value
36 36
   * The form of the url looks like: 
37
   * urltype://name1#value1&name2#value2&nameN#valueN
37
   * urltype://server.domain.com/servlet/?name1=value1&name2=value2&nameN=valueN
38 38
   * notice there is no & after the last param.  If one is there it is ignored.
39 39
   *
40 40
   * @param url the string to parse
......
49 49
   * This method takes a string url and parses it according to the following 
50 50
   * rules.  
51 51
   * 1) The name of the url is the text before the "://" symbol.
52
   * 2) Parameter names are written first and are terminated with the # symbol
52
   * 2) Parameter names are written first and are terminated with the = symbol
53 53
   * 3) Parameter values come 2nd and are terminated with an & except for the
54 54
   *    last value
55 55
   * The form of the url looks like: 
56
   * urltype://name1#value1&name2#value2&nameN#valueN
56
   * urltype://server.domain.com/servlet/?name1=value1&name2=value2&nameN=valueN
57 57
   * notice there is no & after the last param.  If one is there it is ignored.
58 58
   */
59 59
  private void parseURL(String url) throws MalformedURLException
......
133 133
            arrcount++; //increment the array to the next row.
134 134
          }
135 135
          else
136
          { //if there are two #s or &s in a row through an exception
136
          { //if there are two =s or &s in a row through an exception
137 137
            throw new MalformedURLException("metacatURL: Two parameter values " +
138 138
                                            "not allowed in sequence");
139 139
          }

Also available in: Unified diff