tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat33 Ajp14Interceptor.java
Date Sun, 21 Apr 2002 05:51:20 GMT
billbarker    02/04/20 22:51:20

  Modified:    jk/java/org/apache/ajp/tomcat33 Ajp14Interceptor.java
  Log:
  Removing the get/setAttribute overloads.
  
  Revision  Changes    Path
  1.10      +20 -15    jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat33/Ajp14Interceptor.java
  
  Index: Ajp14Interceptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat33/Ajp14Interceptor.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- Ajp14Interceptor.java	26 Nov 2001 16:59:54 -0000	1.9
  +++ Ajp14Interceptor.java	21 Apr 2002 05:51:20 -0000	1.10
  @@ -289,7 +289,26 @@
       {
           this.cm=(ContextManager)contextM;
       }
  -    
  +
  +    public Object getInfo( Context ctx, Request request,
  +			   int id, String key ) {
  +	if( ! ( request instanceof Ajp14Request ) ) {
  +	    return null;
  +	}
  +	Ajp14Request ajp14req = (Ajp14Request)request;
  +	return ajp14req.ajpReq.getAttribute( key );
  +    }
  +    public int setInfo( Context ctx, Request request,
  +			int id, String key, Object obj ) {
  +	if( ! ( request instanceof Ajp14Request ) ) {
  +	    return DECLINED;
  +	}
  +	Ajp14Request ajp14req = (Ajp14Request)request;
  +	ajp14req.ajpReq.setAttribute(key, obj);
  +	return OK;
  +    }
  +		
  +
   
   }
   
  @@ -383,20 +402,6 @@
   
       public void setContentLength( int i ) {
   	super.setContentLength(i); // XXX sync
  -    }
  -
  -    // -------------------- Attributes --------------------
  -    
  -    public void setAttribute(String name, Object value) {
  -	ajpReq.setAttribute( name, value );
  -    }
  -
  -    public Object getAttribute(String name) {
  -        if (name == null) {
  -            return null;
  -        }
  -
  -        return ajpReq.getAttribute( name );
       }
   
       // XXX broken
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message