You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by je...@apache.org on 2002/10/09 14:48:43 UTC
cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpsURL.java HttpURL.java URI.java
jericho 2002/10/09 05:48:43
Modified: httpclient/src/java/org/apache/commons/httpclient
HttpsURL.java HttpURL.java URI.java
Log:
- Add useful constructors with arguments like userinfo, and so on...
Revision Changes Path
1.2 +37 -2 jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpsURL.java
Index: HttpsURL.java
===================================================================
RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpsURL.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- HttpsURL.java 22 Sep 2002 05:19:50 -0000 1.1
+++ HttpsURL.java 9 Oct 2002 12:48:43 -0000 1.2
@@ -263,6 +263,41 @@
* @param host the host string
* @param port the port number
* @param path the path string
+ * @exception URIException
+ */
+ public HttpsURL(String userinfo, String host, int port, String path)
+ throws URIException {
+
+ this(userinfo, host, port, path, null, null);
+ checkValid();
+ }
+
+
+ /**
+ * Construct a HTTPS URL from given components.
+ *
+ * @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 HttpsURL(String userinfo, String host, int port, String path,
+ String query) throws URIException {
+
+ this(userinfo, host, port, path, query, null);
+ checkValid();
+ }
+
+
+ /**
+ * Construct a HTTPS URL from given components.
+ *
+ * @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
* @exception URIException
1.2 +37 -3 jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpURL.java
Index: HttpURL.java
===================================================================
RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpURL.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- HttpURL.java 22 Sep 2002 05:19:50 -0000 1.1
+++ HttpURL.java 9 Oct 2002 12:48:43 -0000 1.2
@@ -256,6 +256,40 @@
}
+ /**
+ * Construct a HTTP URL from given components.
+ *
+ * @param userinfo the userinfo string
+ * @param host the host string
+ * @param port the port number
+ * @param path the path string
+ * @exception URIException
+ */
+ public HttpURL(String userinfo, String host, int port, String path)
+ throws URIException {
+
+ this(userinfo, host, port, path, null, null);
+ checkValid();
+ }
+
+
+ /**
+ * Construct a HTTP URL from given components.
+ *
+ * @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 HttpURL(String userinfo, String host, int port, String path,
+ String query) throws URIException {
+
+ this(userinfo, host, port, path, query, null);
+ checkValid();
+ }
+
/**
* Construct a HTTP URL from given components.
1.3 +55 -4 jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/URI.java
Index: URI.java
===================================================================
RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/URI.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- URI.java 22 Sep 2002 19:21:59 -0000 1.2
+++ URI.java 9 Oct 2002 12:48:43 -0000 1.3
@@ -273,6 +273,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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>