billbarker 02/04/08 21:23:04
Modified: coyote/src/java/org/apache/coyote/tomcat3
CoyoteInterceptor2.java
Log:
Hook-up the SSL attributes to the back-end.
This should work reasonably well across connectors.
Revision Changes Path
1.4 +10 -2
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.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- CoyoteInterceptor2.java 8 Apr 2002 23:47:04 -0000 1.3
+++ CoyoteInterceptor2.java 9 Apr 2002 04:23:04 -0000 1.4
@@ -221,10 +221,18 @@
}
if(key!=null && httpReq!=null ){
+ org.apache.coyote.Request cReq = httpReq.getCoyoteRequest();
+ Object info = cReq.getAttribute(key);
+ if( info != null)
+ return info;
// XXX Should use MsgContext, pass the attribute we need.
// This will extract both
- httpReq.getCoyoteRequest().action( ActionCode.ACTION_REQ_SSL_ATTRIBUTE,
- httpReq.getCoyoteRequest() );
+ // XXX the startsWith is a hack, but it is supposed to be reserved.
+ if(key.startsWith("javax.servlet.request.")) {
+ cReq.action(ActionCode.ACTION_REQ_SSL_ATTRIBUTE,
+ httpReq.getCoyoteRequest() );
+ return cReq.getAttribute(key);
+ }
}
return super.getInfo(ctx,request,id,key);
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>