axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hadd...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/handlers LogHandler.java SimpleAuthorizationHandler.java
Date Fri, 28 Mar 2003 12:36:43 GMT
haddadc     2003/03/28 04:36:43

  Modified:    java/samples/security ClientSigningHandler.java
                        LogHandler.java
               java/src/org/apache/axis/handlers LogHandler.java
                        SimpleAuthorizationHandler.java
  Log:
  Changed deprecated undo() methods to onFault()
  PR:18451
  
  Revision  Changes    Path
  1.12      +1 -1      xml-axis/java/samples/security/ClientSigningHandler.java
  
  Index: ClientSigningHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/security/ClientSigningHandler.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- ClientSigningHandler.java	11 Dec 2002 22:41:14 -0000	1.11
  +++ ClientSigningHandler.java	28 Mar 2003 12:36:43 -0000	1.12
  @@ -96,7 +96,7 @@
           }
       }
   
  -    public void undo(MessageContext msgContext) {
  +    public void onFault(MessageContext msgContext) {
           try {
               // probably needs to fault.
           } catch (Exception e) {
  
  
  
  1.18      +1 -1      xml-axis/java/samples/security/LogHandler.java
  
  Index: LogHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/security/LogHandler.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- LogHandler.java	11 Dec 2002 22:41:14 -0000	1.17
  +++ LogHandler.java	28 Mar 2003 12:36:43 -0000	1.18
  @@ -119,7 +119,7 @@
   
       }
   
  -    public void undo(MessageContext msgContext) {
  +    public void onFault(MessageContext msgContext) {
           try {
               Handler serviceHandler = msgContext.getService();
               String filename = (String) getOption("filename");
  
  
  
  1.40      +2 -19     xml-axis/java/src/org/apache/axis/handlers/LogHandler.java
  
  Index: LogHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/LogHandler.java,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- LogHandler.java	18 Feb 2003 00:55:07 -0000	1.39
  +++ LogHandler.java	28 Mar 2003 12:36:43 -0000	1.40
  @@ -88,7 +88,7 @@
   
       public void init() {
           super.init();
  -        
  +
           Object opt = this.getOption("LogHandler.writeToConsole");
           if (opt != null && opt instanceof String &&
                   "true".equalsIgnoreCase((String)opt))
  @@ -134,7 +134,7 @@
                 writer.close();
               }
               //END FIX: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16646
  -            
  +
           } catch( Exception e ) {
               log.error( Messages.getMessage("exception00"), e );
               throw AxisFault.makeFault(e);
  @@ -158,23 +158,6 @@
           return writer;
       }
   
  -    public void undo(MessageContext msgContext) {
  -        log.debug("Enter: LogHandler::undo");
  -        try {
  -            PrintWriter pw   = getWriter(msgContext);
  -            pw.println( "=====================" );
  -            pw.println( "= " + Messages.getMessage("fault00") );
  -            pw.println( "=====================" );
  -            //START FIX: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16646
  -            if (!writeToConsole) {
  -              pw.close();
  -            }
  -            // END FIX: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16646
  -        } catch( Exception e ) {
  -            log.error(Messages.getMessage("exception00"), e );
  -        }
  -        log.debug("Exit: LogHandler::undo");
  -    }
   
       public void onFault(MessageContext msgContext) {
           try {
  
  
  
  1.41      +4 -4      xml-axis/java/src/org/apache/axis/handlers/SimpleAuthorizationHandler.java
  
  Index: SimpleAuthorizationHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/SimpleAuthorizationHandler.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- SimpleAuthorizationHandler.java	11 Dec 2002 22:38:18 -0000	1.40
  +++ SimpleAuthorizationHandler.java	28 Mar 2003 12:36:43 -0000	1.41
  @@ -143,7 +143,7 @@
               if (provider.userMatches(user, thisRole)) {
   
                   if (log.isDebugEnabled()) {
  -                    log.debug(Messages.getMessage("auth01", 
  +                    log.debug(Messages.getMessage("auth01",
                           userID, serviceName));
                   }
   
  @@ -162,10 +162,10 @@
       /**
        * Nothing to undo
        */
  -    public void undo(MessageContext msgContext) {
  +    public void onFault(MessageContext msgContext) {
           if (log.isDebugEnabled()) {
  -            log.debug("Enter: SimpleAuthorizationHandler::undo");
  -            log.debug("Exit: SimpleAuthorizationHandler::undo");
  +            log.debug("Enter: SimpleAuthorizationHandler::onFault");
  +            log.debug("Exit: SimpleAuthorizationHandler::onFault");
           }
       }
   };
  
  
  

Mime
View raw message