You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2003/10/31 22:38:36 UTC

cvs commit: cocoon-2.1/src/java/org/apache/cocoon/environment/http HttpRequest.java HttpResponse.java

vgritsenko    2003/10/31 13:38:36

  Modified:    src/java/org/apache/cocoon/environment/http HttpRequest.java
                        HttpResponse.java
  Log:
  Javadoc comments
  
  Revision  Changes    Path
  1.6       +3 -3      cocoon-2.1/src/java/org/apache/cocoon/environment/http/HttpRequest.java
  
  Index: HttpRequest.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/environment/http/HttpRequest.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- HttpRequest.java	29 Oct 2003 14:48:56 -0000	1.5
  +++ HttpRequest.java	31 Oct 2003 21:38:36 -0000	1.6
  @@ -70,8 +70,8 @@
   import org.apache.cocoon.servlet.multipart.MultipartHttpServletRequest;
   
   /**
  - * Implements the {@link javax.servlet.http.HttpServletRequest} interface
  - * to provide request information for HTTP servlets.
  + * Implements the {@link org.apache.cocoon.environment.Request} interface
  + * to provide request information in the HTTP servlets environment.
    *
    * @author <a href="mailto:giacomo@apache.org">Giacomo Pati</a>
    * @version CVS $Id$
  
  
  
  1.3       +9 -7      cocoon-2.1/src/java/org/apache/cocoon/environment/http/HttpResponse.java
  
  Index: HttpResponse.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/environment/http/HttpResponse.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HttpResponse.java	24 Jun 2003 15:20:28 -0000	1.2
  +++ HttpResponse.java	31 Oct 2003 21:38:36 -0000	1.3
  @@ -60,11 +60,10 @@
   import java.util.Locale;
   
   /**
  - *
  - * Implements the {@link HttpServletResponse} interface to provide HTTP-specific
  - * functionality in sending a response.  For example, it has methods
  - * to access HTTP headers and cookies.
  - * @author ?
  + * Implements the {@link org.apache.cocoon.environment.Response} interface
  + * to provide response functionality in the HTTP servlets environment.
  + * 
  + * @author <a href="mailto:dev@cocoon.apache.org">Apache Cocoon Team</a>
    * @version CVS $Id$
    */
   
  @@ -114,8 +113,10 @@
       }
   
       public String encodeRedirectURL(String url) {
  -        if (url != null && url.indexOf(";jsessionid=") != -1)
  +        if (url != null && url.indexOf(";jsessionid=") != -1) {
               return url;
  +        }
  +
           return this.res.encodeRedirectURL(url);
       }
   
  @@ -135,6 +136,7 @@
           this.res.setHeader("location", location);
           this.res.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
       }
  +    
       public void setDateHeader(String name, long date) {
           this.res.setDateHeader(name, date);
       }