axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ney...@apache.org
Subject cvs commit: xml-axis/java/prototype/TRL_Proposal/org/apache/axis ChainContainer.java Handler.java SOAPFaultException.java TransportListener.java
Date Tue, 30 Jan 2001 08:10:30 GMT
neyama      01/01/30 00:10:30

  Modified:    java/prototype/TRL_Proposal/org/apache/axis
                        ChainContainer.java Handler.java
                        SOAPFaultException.java TransportListener.java
  Added:       java/prototype/TRL_Proposal README
  Log:
  Added README file for TRL Proposal.
  Fixed coding style including indentation in the source code.
  
  Revision  Changes    Path
  1.1                  xml-axis/java/prototype/TRL_Proposal/README
  
  Index: README
  ===================================================================
  Document for TRL proposal
  
  Last update: 2000/01/30
  Author: Ryo Neyama (neyama@trl.ibm.co.jp)
  
  1. Required jar files
    xerces.jar (Xerces 1.2.3)
    servlet.jar (Servlet 2.2)
    xss4j.jar (XSS4J 20010129; Required for digsig example)
      http://www.alphaworks.ibm.com/tech/xmlsecuritysuite
  2. How to run the example
  
  
  
  1.2       +5 -5      xml-axis/java/prototype/TRL_Proposal/org/apache/axis/ChainContainer.java
  
  Index: ChainContainer.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/prototype/TRL_Proposal/org/apache/axis/ChainContainer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ChainContainer.java	2001/01/30 07:09:29	1.1
  +++ ChainContainer.java	2001/01/30 08:10:28	1.2
  @@ -13,15 +13,15 @@
           this.singleChain.add(handler);
       }
     
  -    public void init() {};
  +    public void init() {}
   
  -    public void cleanup() {};
  +    public void cleanup() {}
   
       public void invoke(MessageContext msgCntxt) {
           int length = this.singleChain.size();
  -        for( int i=0; i<length; i++) {
  +        for(int i = 0; i < length; i++) {
               Handler handler = (Handler)this.singleChain.get(i);
               handler.invoke(msgCntxt);
           }        
  -    };
  -};
  +    }
  +}
  
  
  
  1.2       +19 -21    xml-axis/java/prototype/TRL_Proposal/org/apache/axis/Handler.java
  
  Index: Handler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/prototype/TRL_Proposal/org/apache/axis/Handler.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Handler.java	2001/01/30 07:09:28	1.1
  +++ Handler.java	2001/01/30 08:10:28	1.2
  @@ -2,27 +2,25 @@
   
   import java.io.Serializable;
   
  -  /**
  -   * We may have to remove Serializable because we need 
  -   * onSerialize and onDederialize.
  -   */
  -
  +/**
  + * We may have to remove Serializable because we need 
  + * onSerialize and onDederialize.
  + */
   public interface Handler extends Serializable {
  -  /**
  -   * Init is called when the chain containing this Chainable object
  -   * is instantiated.
  -   */
  -  void init();
  -
  -  /**
  -   * Cleanup is called when the chain containing this Chainable object
  -   * is done processing the chain.
  -   */
  -  void cleanup();
  +    /**
  +     * Init is called when the chain containing this Chainable object
  +     * is instantiated.
  +     */
  +    void init();
   
  -  /**
  -   * Invoke is called to do the actual work of the Chainable object.
  -   */
  -  void invoke(MessageContext message);
  +    /**
  +     * Cleanup is called when the chain containing this Chainable object
  +     * is done processing the chain.
  +     */
  +    void cleanup();
   
  -};
  +    /**
  +     * Invoke is called to do the actual work of the Chainable object.
  +     */
  +    void invoke(MessageContext message);
  +}
  
  
  
  1.2       +6 -6      xml-axis/java/prototype/TRL_Proposal/org/apache/axis/SOAPFaultException.java
  
  Index: SOAPFaultException.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/prototype/TRL_Proposal/org/apache/axis/SOAPFaultException.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SOAPFaultException.java	2001/01/29 11:48:02	1.1
  +++ SOAPFaultException.java	2001/01/30 08:10:28	1.2
  @@ -3,20 +3,20 @@
   import org.apache.axis.SOAPException;
   
   public class SOAPFaultException extends SOAPException {
  -    MessageContext faultMessage ;
  +    MessageContext faultMessage;
       public SOAPFaultException() { }
   
       public SOAPFaultException(MessageContext faultMessage) {
  -        super("A SOAP Fault occured") ;
  -        setFaultMessage(faultMessage) ;
  +        super("A SOAP Fault occured");
  +        setFaultMessage(faultMessage);
       }
   
       public void setFaultMessage(MessageContext faultMessage) {
  -        this.faultMessage = faultMessage ;
  +        this.faultMessage = faultMessage;
       }
  -    public MessageContext getFaultMessage() { return faultMessage ; }
  +    public MessageContext getFaultMessage() { return faultMessage; }
   
       public String toString() {
  -        return (super.toString() + "\nThe SOAP Fault message contained in the exception
is as follows:\n" + faultMessage) ;
  +        return (super.toString() + "\nThe SOAP Fault message contained in the exception
is as follows:\n" + faultMessage);
       }
   }
  
  
  
  1.2       +1 -1      xml-axis/java/prototype/TRL_Proposal/org/apache/axis/TransportListener.java
  
  Index: TransportListener.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/prototype/TRL_Proposal/org/apache/axis/TransportListener.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TransportListener.java	2001/01/30 07:10:01	1.1
  +++ TransportListener.java	2001/01/30 08:10:29	1.2
  @@ -1,5 +1,5 @@
   package org.apache.axis;
   
   public interface TransportListener {
  -     public void setNextHandler( Handler handler );
  +    public void setNextHandler(Handler handler);
   }
  
  
  

Mime
View raw message