tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Storing a request
Date Tue, 13 Sep 2005 18:08:11 GMT
Take a look at how form authenticator does it. See 
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/authenticator/FormAuthenticator.java?rev=1.24&view=markup
and the SavedRequest class in the same package.

Note that the way this restores the request, particularly the body 
content, is *very* Tomcat specific.

Mark

Ajay Arjandas Daryanani wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi everyone,
> 
> this is my first mail to this list, forgive me for any mistake I may make...
> 
> I'm developing a authorization filter for Tomcat 5; in some cases, if
> the user credentials are invalid, I have to save the original request,
> redirect the user to an external authentication engine, handle the
> response and then proceed with the original request. The problem is, I
> can't find a way to clone the request or create a new one.
> 
> Any comments are welcome.
> 
> Thanks everyone,
> 
> Ajay
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
> 
> iD8DBQFDJqOSUIJoGmiuVrwRAqiHAJ4xBi9L2CwbPUAG2IfuZ04vnw7S1wCg9AJA
> Z7/YgABDRBF0JMc0D82DtYs=
> =eyYs
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message