morgand     02/01/18 12:17:41

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpMethod.java
  Log:
  doco clarification - getPath() method returns the ACTUAL path in the
  event of 301 or 302 redirects
  
  Revision  Changes    Path
  1.11      +11 -5     
jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethod.java
  
  Index: HttpMethod.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethod.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- HttpMethod.java   5 Jan 2002 11:16:00 -0000       1.10
  +++ HttpMethod.java   18 Jan 2002 20:17:40 -0000      1.11
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethod.java,v
 1.10 2002/01/05 11:16:00 vmassol Exp $
  - * $Revision: 1.10 $
  - * $Date: 2002/01/05 11:16:00 $
  + * $Header: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethod.java,v
 1.11 2002/01/18 20:17:40 morgand Exp $
  + * $Revision: 1.11 $
  + * $Date: 2002/01/18 20:17:40 $
    * ====================================================================
    *
    * The Apache Software License, Version 1.1
  @@ -74,7 +74,7 @@
    * </p>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Remy Maucherat</a>
    * @author Rod Waldhoff
  - * @version $Revision: 1.10 $ $Date: 2002/01/05 11:16:00 $
  + * @version $Revision: 1.11 $ $Date: 2002/01/18 20:17:40 $
    */
   public interface HttpMethod {
   
  @@ -94,7 +94,13 @@
       public void setPath(String path);
   
       /**
  -     * Get the path part of my request.
  +     * Get the path part of my request.  
  +     *
  +     * Calling this method AFTER the request
  +     * has been executed will return the ACTUAL path, following any 301 or 302 
  +     * redirects (except for redirects off the initial server, which are not 
  +     * supported, or when HttpClient is set to not follow redirects; in either
  +     * case, HttpClient returns the 301 or 302 status code).
        * @return the path to request
        */
       public String getPath();
  
  
  

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

Reply via email to