axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bu...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/transport/http AxisServlet.java
Date Fri, 16 Aug 2002 19:28:03 GMT
butek       2002/08/16 12:28:02

  Modified:    java/src/org/apache/axis/transport/http AxisServlet.java
  Log:
  Pull setContentType into the try block.  It may cause serializers to be called
  and, if they have any problems, the problems won't be logged.
  
  Revision  Changes    Path
  1.136     +13 -13    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.135
  retrieving revision 1.136
  diff -u -r1.135 -r1.136
  --- AxisServlet.java	15 Aug 2002 06:59:55 -0000	1.135
  +++ AxisServlet.java	16 Aug 2002 19:28:02 -0000	1.136
  @@ -652,22 +652,22 @@
                   //          responseMsg.getContentLength());
               }
   
  -            res.setContentType(responseMsg.getContentType());
  +            try {
  +                res.setContentType(responseMsg.getContentType());
   
  -            /* My understand of Content-Length
  -             * HTTP 1.0
  -             *   -Required for requests, but optional for responses.
  -             * HTTP 1.1
  -             *  - Either Content-Length or HTTP Chunking is required.
  -             *   Most servlet engines will do chunking if content-length is not specified.
  -             *
  -             *
  -             */
  +                /* My understand of Content-Length
  +                 * HTTP 1.0
  +                 *   -Required for requests, but optional for responses.
  +                 * HTTP 1.1
  +                 *  - Either Content-Length or HTTP Chunking is required.
  +                 *   Most servlet engines will do chunking if content-length is not specified.
  +                 *
  +                 *
  +                 */
   
  -            //if(clientVersion == HTTPConstants.HEADER_PROTOCOL_V10) //do chunking if necessary.
  -           //     res.setContentLength(responseMsg.getContentLength());
  +                //if(clientVersion == HTTPConstants.HEADER_PROTOCOL_V10) //do chunking
if necessary.
  +                //     res.setContentLength(responseMsg.getContentLength());
   
  -            try {
                   responseMsg.writeTo(res.getOutputStream());
               } catch (SOAPException e){
                   log.error(JavaUtils.getMessage("exception00"), e);
  
  
  

Mime
View raw message