axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/handlers DebugHandler.java
Date Fri, 30 Mar 2001 20:17:30 GMT
dug         01/03/30 12:17:30

  Modified:    java/src/org/apache/axis/handlers DebugHandler.java
  Log:
  Debug Handler doesn't reset
  
  Revision  Changes    Path
  1.10      +4 -1      xml-axis/java/src/org/apache/axis/handlers/DebugHandler.java
  
  Index: DebugHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/DebugHandler.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- DebugHandler.java	2001/03/30 17:48:41	1.9
  +++ DebugHandler.java	2001/03/30 20:17:29	1.10
  @@ -79,10 +79,11 @@
               Message       msg = msgContext.getRequestMessage();
               SOAPEnvelope  env = (SOAPEnvelope) msg.getAs( "SOAPEnvelope" );
               Vector        headers = null ;
  +            int           i ;
               
               headers = env.getHeadersByNameAndURI("Debug", Constants.URI_DEBUG);
   
  -            for ( int i = 0 ; headers != null && i < headers.size() ; i ++ )
{
  +            for ( i = 0 ; headers != null && i < headers.size() ; i ++ ) {
                   SOAPHeader  header = (SOAPHeader) headers.get(i);
                   Element     root   = header.getRoot();
                   String      value = root.getFirstChild().getNodeValue();
  @@ -93,6 +94,8 @@
                       header.setProcessed( true );
                   }
               }
  +            if ( i == 0 )
  +              Debug.setDebugLevel( 0 );
           }
           catch( Exception e ) {
               Debug.Print( 1, e );
  
  
  

Mime
View raw message