billbarker 02/04/09 22:01:01
Modified: coyote/src/java/org/apache/coyote/tomcat3
CoyoteInterceptor2.java
Log:
Fix the return value to conform to the API.
Why can't Java be like C++ where this is an error?
Revision Changes Path
1.8 +4 -3
jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/CoyoteInterceptor2.java
Index: CoyoteInterceptor2.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/CoyoteInterceptor2.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- CoyoteInterceptor2.java 9 Apr 2002 20:14:11 -0000 1.7
+++ CoyoteInterceptor2.java 10 Apr 2002 05:01:01 -0000 1.8
@@ -233,18 +233,19 @@
return super.getInfo(ctx,request,id,key);
}
- public void setInfo( Context ctx, org.apache.tomcat.core.Request request,
+ public int setInfo( Context ctx, org.apache.tomcat.core.Request request,
int id, String key, String object ) {
if( ! ( request instanceof Tomcat3Request ) )
- return;
+ return DECLINED;
Tomcat3Request httpReq=(Tomcat3Request)request;
if(key!=null && httpReq!=null ){
org.apache.coyote.Request cReq = httpReq.getCoyoteRequest();
cReq.setAttribute(key, object);
+ return OK;
}
- super.setInfo(ctx,request,id,key, object);
+ return super.setInfo(ctx, request, id, key, object);
}
/**
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>