axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/transport/http AxisServlet.java
Date Thu, 03 May 2001 18:28:31 GMT
rubys       01/05/03 11:28:30

  Modified:    java/src/org/apache/axis/transport/http AxisServlet.java
  Log:
  Hopefully in the future we will stream/chunk, but for now since we know
  the content length, lets send it along.
  
  Revision  Changes    Path
  1.17      +4 -1      xml-axis/java/src/org/apache/axis/transport/http/AxisServlet.java
  
  Index: AxisServlet.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/AxisServlet.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- AxisServlet.java	2001/04/29 08:24:57	1.16
  +++ AxisServlet.java	2001/05/03 18:28:27	1.17
  @@ -190,6 +190,9 @@
       /***********************************/
       msg = msgContext.getResponseMessage();
       res.setContentType( "text/xml" );
  -    res.getWriter().println( msg !=  null ? msg.getAs("String") : "No data" );
  +    String response = (String) msg.getAs("String");
  +    if (msg == null) msg="No data";
  +    res.setContentLength( response.length() );
  +    res.getWriter().print( response );
     }
   }
  
  
  

Mime
View raw message