You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by gi...@locus.apache.org on 2000/09/14 22:05:50 UTC

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

giacomo     00/09/14 13:05:49

  Modified:    src/org/apache/cocoon/environment/http Tag: xml-cocoon2
                        HttpResponse.java
  Log:
  Removed a FIXME comment which has been corrected
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.4   +6 -13     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.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- HttpResponse.java	2000/07/29 18:30:34	1.1.2.3
  +++ HttpResponse.java	2000/09/14 20:05:48	1.1.2.4
  @@ -103,7 +103,7 @@
       }
   
       /**
  -     * @deprecated	As of version 2.1, use 
  +     * @deprecated	As of version 2.1, use
        *			encodeRedirectURL(String url) instead
        */
       public String encodeRedirectUrl(String url) {
  @@ -111,8 +111,8 @@
       }
   
       /**
  -     * @deprecated As of version 2.1, due to ambiguous meaning of the 
  -     * message parameter. To set a status code 
  +     * @deprecated As of version 2.1, due to ambiguous meaning of the
  +     * message parameter. To set a status code
        * use <code>setStatus(int)</code>, to send an error with a description
        * use <code>sendError(int, String)</code>.
        */
  @@ -121,24 +121,17 @@
       }
   
       /* The ServletResponse interface methods */
  -  
  +
       public String getCharacterEncoding() {
           return this.res.getCharacterEncoding();
       }
   
       public ServletOutputStream getOutputStream() throws IOException {
  -        //FIXME: How to query if a Serializer/Reader is calleng this ?
  -        if (1==1 /* is the calling object not a serializer/reader ? */) {
  -            throw new IllegalStateException ("you are not a serializer or reader");
  -        }
  -        return this.res.getOutputStream();
  +        throw new IllegalStateException ("you are not a serializer or reader");
       }
   
       public PrintWriter getWriter() throws IOException {
  -        if (1==1 /* is the calling object not a serializer/reader ? */) {
  -            throw new IllegalStateException ("you are not a serializer or reader");
  -        }
  -        return this.res.getWriter();
  +        throw new IllegalStateException ("you are not a serializer or reader");
       }
   
       public void setContentLength(int len) {