jericho     2002/10/09 05:49:19

  Modified:    src/util/org/apache/util URI.java
  Log:
  - Add useful constructors with arguments like userinfo, and so on...
  
  Revision  Changes    Path
  1.21      +55 -4     jakarta-slide/src/util/org/apache/util/URI.java
  
  Index: URI.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/util/org/apache/util/URI.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- URI.java  29 Sep 2002 09:13:12 -0000      1.20
  +++ URI.java  9 Oct 2002 12:49:19 -0000       1.21
  @@ -274,6 +274,57 @@
        * @param userinfo the userinfo string
        * @param host the host string
        * @param port the port number
  +     * @exception URIException
  +     */
  +    public URI(String scheme, String userinfo, String host, int port)
  +        throws URIException {
  +
  +        this(scheme, userinfo, host, port, null, null, null);
  +    }
  +
  +
  +    /**
  +     * Construct a general URI from the given components.
  +     *
  +     * @param scheme the scheme string
  +     * @param userinfo the userinfo string
  +     * @param host the host string
  +     * @param port the port number
  +     * @param path the path string
  +     * @exception URIException
  +     */
  +    public URI(String scheme, String userinfo, String host, int port,
  +            String path) throws URIException {
  +
  +        this(scheme, userinfo, host, port, path, null, null);
  +    }
  +
  +
  +    /**
  +     * Construct a general URI from the given components.
  +     *
  +     * @param scheme the scheme string
  +     * @param userinfo the userinfo string
  +     * @param host the host string
  +     * @param port the port number
  +     * @param path the path string
  +     * @param query the query string
  +     * @exception URIException
  +     */
  +    public URI(String scheme, String userinfo, String host, int port,
  +            String path, String query) throws URIException {
  +
  +        this(scheme, userinfo, host, port, path, query, null);
  +    }
  +
  +
  +    /**
  +     * Construct a general URI from the given components.
  +     *
  +     * @param scheme the scheme string
  +     * @param userinfo the userinfo string
  +     * @param host the host string
  +     * @param port the port number
        * @param path the path string
        * @param query the query string
        * @param fragment the fragment string
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to