You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by jm...@apache.org on 2001/03/25 10:49:05 UTC

cvs commit: xml-axis/java/src/org/apache/axis SimpleChain.java

jmsnell     01/03/25 00:49:05

  Modified:    java/src/org/apache/axis SimpleChain.java
  Log:
  SimpleChain now extends BasicHandler so the Option stuff
  could be removed
  
  Revision  Changes    Path
  1.10      +2 -28     xml-axis/java/src/org/apache/axis/SimpleChain.java
  
  Index: SimpleChain.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/SimpleChain.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- SimpleChain.java	2001/03/09 19:25:07	1.9
  +++ SimpleChain.java	2001/03/25 08:49:05	1.10
  @@ -58,13 +58,14 @@
   import java.util.* ;
   import org.apache.axis.* ;
   import org.apache.axis.utils.* ;
  +import org.apache.axis.handlers.*;
   import org.jdom.Element ;
   
   /**
    *
    * @author Doug Davis (dug@us.ibm.com)
    */
  -public class SimpleChain implements Chain {
  +public class SimpleChain extends BasicHandler implements Chain {
     protected Vector     handlers ;
     protected Hashtable  options ;
   
  @@ -118,33 +119,6 @@
         if ( ((Handler) handlers.elementAt( i )).canHandleBlock(qname) )
           return( true );
       return( false );
  -  }
  -
  -  /**
  -   * Add the given option (name/value) to this handler's bag of options
  -   */
  -  public void addOption(String name, Object value) {
  -    if ( options == null ) options = new Hashtable();
  -    options.put( name, value );
  -  }
  -
  -  /**
  -   * Returns the option corresponding to the 'name' given
  -   */
  -  public Object getOption(String name) {
  -    if ( options == null ) return( null );
  -    return( options.get(name) );
  -  }
  -
  -  /**
  -   * Return the entire list of options
  -   */
  -  public Hashtable getOptions() {
  -    return( options );
  -  }
  -
  -  public void setOptions(Hashtable opts) {
  -    options = opts ;
     }
   
     public void addHandler(Handler handler) {