hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1353782 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URIBuilder.java
Date Tue, 26 Jun 2012 00:25:44 GMT
Author: sebb
Date: Tue Jun 26 00:25:44 2012
New Revision: 1353782

URL: http://svn.apache.org/viewvc?rev=1353782&view=rev
Log:
Javadoc

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URIBuilder.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URIBuilder.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URIBuilder.java?rev=1353782&r1=1353781&r2=1353782&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URIBuilder.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URIBuilder.java
Tue Jun 26 00:25:44 2012
@@ -35,6 +35,7 @@ import java.util.List;
 
 import org.apache.http.Consts;
 import org.apache.http.NameValuePair;
+import org.apache.http.annotation.NotThreadSafe;
 import org.apache.http.conn.util.InetAddressUtils;
 import org.apache.http.message.BasicNameValuePair;
 
@@ -43,6 +44,7 @@ import org.apache.http.message.BasicName
  *
  * @since 4.2
  */
+@NotThreadSafe
 public class URIBuilder {
 
     private String scheme;
@@ -59,16 +61,29 @@ public class URIBuilder {
     private String fragment;
     private String encodedFragment;
 
+    /**
+     * Constructs an empty instance.
+     */
     public URIBuilder() {
         super();
         this.port = -1;
     }
 
+    /**
+     * Construct an instance from the string which must be a valid URI.
+     * 
+     * @param string a valid URI in string form
+     * @throws URISyntaxException if the input is not a valid URI
+     */
     public URIBuilder(final String string) throws URISyntaxException {
         super();
         digestURI(new URI(string));
     }
 
+    /**
+     * Construct an instance from the provided URI.
+     * @param uri
+     */
     public URIBuilder(final URI uri) {
         super();
         digestURI(uri);



Mime
View raw message