costin 02/04/08 16:47:04 Modified: coyote/src/java/org/apache/coyote/tomcat3 CoyoteInterceptor2.java Tomcat3Request.java Log: Add the callback for SSL info Revision Changes Path 1.3 +26 -0 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.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- CoyoteInterceptor2.java 5 Apr 2002 22:17:49 -0000 1.2 +++ CoyoteInterceptor2.java 8 Apr 2002 23:47:04 -0000 1.3 @@ -202,5 +202,31 @@ } return 0; } + + + /** + getInfo calls for SSL data + + @return the requested data + */ + public Object getInfo( Context ctx, org.apache.tomcat.core.Request request, + int id, String key ) { + + Tomcat3Request httpReq; + + try { + httpReq=(Tomcat3Request)request; + } catch (ClassCastException e){ + return null; + } + + if(key!=null && httpReq!=null ){ + // XXX Should use MsgContext, pass the attribute we need. + // This will extract both + httpReq.getCoyoteRequest().action( ActionCode.ACTION_REQ_SSL_ATTRIBUTE, + httpReq.getCoyoteRequest() ); + } + return super.getInfo(ctx,request,id,key); + } } 1.4 +4 -0 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/Tomcat3Request.java Index: Tomcat3Request.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/Tomcat3Request.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- Tomcat3Request.java 8 Apr 2002 22:57:36 -0000 1.3 +++ Tomcat3Request.java 8 Apr 2002 23:47:04 -0000 1.4 @@ -116,6 +116,10 @@ end=-1; } + public org.apache.coyote.Request getCoyoteRequest() { + return coyoteRequest; + } + /** Attach the Coyote Request to this Request. * This is currently set pre-request to allow copying the request * attributes to the Tomcat attributes.
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>