You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by di...@locus.apache.org on 2000/12/02 01:25:07 UTC

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

dims        00/12/01 16:25:07

  Modified:    src/org/apache/cocoon/environment/commandline Tag:
                        xml-cocoon2 CommandLineRequest.java
                        CommandLineResponse.java
               src/org/apache/cocoon/environment/http Tag: xml-cocoon2
                        HttpRequest.java HttpResponse.java
  Log:
  Moving to Servlet 2.3
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.3   +7 -2      xml-cocoon/src/org/apache/cocoon/environment/commandline/Attic/CommandLineRequest.java
  
  Index: CommandLineRequest.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/environment/commandline/Attic/CommandLineRequest.java,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- CommandLineRequest.java	2000/10/06 21:25:27	1.1.2.2
  +++ CommandLineRequest.java	2000/12/02 00:25:05	1.1.2.3
  @@ -29,7 +29,7 @@
    * Creates a specific servlet request simulation from command line usage.
    *
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version CVS $Revision: 1.1.2.2 $ $Date: 2000/10/06 21:25:27 $
  + * @version CVS $Revision: 1.1.2.3 $ $Date: 2000/12/02 00:25:05 $
    */
   
   /*
  @@ -57,6 +57,7 @@
       private Map attributes;
       private Map parameters;
       private Map headers;
  +    private String characterEncoding = null;
   
       public CommandLineRequest(String contextPath, String servletPath, String pathInfo) {
           this(contextPath, servletPath, pathInfo, null, null, null);
  @@ -134,7 +135,7 @@
   
       public BufferedReader getReader() throws IOException { return null; }
       public ServletInputStream getInputStream() throws IOException { return null; }
  -    public String getCharacterEncoding() { return null; }
  +    public String getCharacterEncoding() { return characterEncoding; }
       public int getContentLength() { return -1; }
   
       public String getContentType() { return null; }
  @@ -170,4 +171,8 @@
       public String getRealPath(String path) { return null; }
       /** @deprecated */
       public boolean isRequestedSessionIdFromUrl() { return false; }
  +    public java.util.Map getParameterMap() { return parameters; }
  +    public void setCharacterEncoding(java.lang.String env)
  +                          throws java.io.UnsupportedEncodingException { characterEncoding = env; }
  +    public java.lang.StringBuffer getRequestURL() { return null; }
   }
  
  
  
  1.1.2.2   +3 -1      xml-cocoon/src/org/apache/cocoon/environment/commandline/Attic/CommandLineResponse.java
  
  Index: CommandLineResponse.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/environment/commandline/Attic/CommandLineResponse.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- CommandLineResponse.java	2000/10/02 11:07:29	1.1.2.1
  +++ CommandLineResponse.java	2000/12/02 00:25:05	1.1.2.2
  @@ -22,7 +22,7 @@
    * Creates a specific servlet response simulation from command line usage.
    *
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version CVS $Revision: 1.1.2.1 $ $Date: 2000/10/02 11:07:29 $
  + * @version CVS $Revision: 1.1.2.2 $ $Date: 2000/12/02 00:25:05 $
    */
   
   public class CommandLineResponse implements HttpServletResponse {
  @@ -65,4 +65,6 @@
       public String encodeUrl(String url) { return url; }
       /** @deprecated */
       public String encodeRedirectUrl(String url) { return url; }
  +    public java.lang.StringBuffer getRequestURL() { return null; }
  +    public void resetBuffer() { }
   }
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.5   +14 -0     xml-cocoon/src/org/apache/cocoon/environment/http/Attic/HttpRequest.java
  
  Index: HttpRequest.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/environment/http/Attic/HttpRequest.java,v
  retrieving revision 1.1.2.4
  retrieving revision 1.1.2.5
  diff -u -r1.1.2.4 -r1.1.2.5
  --- HttpRequest.java	2000/07/29 18:30:34	1.1.2.4
  +++ HttpRequest.java	2000/12/02 00:25:06	1.1.2.5
  @@ -243,4 +243,18 @@
       public String getRealPath(String path) {
           return this.req.getRealPath(path);
       }
  +
  +    public java.util.Map getParameterMap() {
  +        return this.req.getParameterMap();
  +    }
  +     
  +    public void setCharacterEncoding(java.lang.String env)
  +                          throws java.io.UnsupportedEncodingException {
  +        this.req.setCharacterEncoding(env);
  +    }
  +
  +    public java.lang.StringBuffer getRequestURL() {
  +        return this.req.getRequestURL();
  +    }
  +
   }
  
  
  
  1.1.2.5   +4 -0      xml-cocoon/src/org/apache/cocoon/environment/http/Attic/HttpResponse.java
  
  Index: HttpResponse.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/environment/http/Attic/HttpResponse.java,v
  retrieving revision 1.1.2.4
  retrieving revision 1.1.2.5
  diff -u -r1.1.2.4 -r1.1.2.5
  --- HttpResponse.java	2000/09/14 20:05:48	1.1.2.4
  +++ HttpResponse.java	2000/12/02 00:25:06	1.1.2.5
  @@ -169,5 +169,9 @@
       public Locale getLocale() {
           return this.res.getLocale();
       }
  +
  +    public void resetBuffer() {
  +        this.res.resetBuffer();
  +    }
   }