You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by se...@apache.org on 2009/09/22 15:22:55 UTC
svn commit: r817653 -
/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/HttpUriRequest.java
Author: sebb
Date: Tue Sep 22 13:22:54 2009
New Revision: 817653
URL: http://svn.apache.org/viewvc?rev=817653&view=rev
Log:
Document how to find final URI
Modified:
httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/HttpUriRequest.java
Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/HttpUriRequest.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/HttpUriRequest.java?rev=817653&r1=817652&r2=817653&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/HttpUriRequest.java (original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/HttpUriRequest.java Tue Sep 22 13:22:54 2009
@@ -51,6 +51,15 @@
/**
* Returns the URI this request uses, such as
* <code>http://example.org/path/to/file</code>.
+ *
+ * Note that this is the original URI, and is
+ * unaffected by redirects.
+ *
+ * To find the final URI after any redirects have been processed,
+ * please see the section entitled
+ * <a href="http://hc.apache.org/httpcomponents-client/tutorial/html/fundamentals.html#d4e205">HTTP execution context</a>
+ * in the
+ * <a href="http://hc.apache.org/httpcomponents-client/tutorial/html">HttpClient Tutorial</a>
*/
URI getURI();