Re: How to validate or parse HTTP request headers ( tomcat version 6.0.18 )
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Kalasareddy, On 1/15/14, 1:12 AM, kalasareddy lingaraja wrote: yes i did it, but thing is that after parsing request in filter: if it is success then i should redirect the request to web service which running in embedded tomcat instance, could you help me how to shift control to web service from filter Read the Javadoc for javax.servlet.Filter. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJS2E/PAAoJEBzwKT+lPKRY2MUP/0RtFBnpOkydN4RcqfPMEs5K qzS8j55y11eMsur7mKzWqqLwjblKGS3hmMCwRHxJ4aPIiNhIXxKmlzQqqZIYl81p LK6FRoC+axBz0Fy5sOS9Oy8WW4atP2BLwZ/XhOrrWUhx07vRh9CK5AFo8R5AC7SE 8Y/H2TVQ8M+F5k9ldaD0oiy+ugS+ljILepYKCgOnk+WrK4LHTBHGe7jQiCpLCeXQ 4bYF0cyCUkNStQLchp8X8QPmhiVyVv4PxE1kmQ37O0YdFJ9i3PY8J1MDHQbDqKvZ 7mo5nz7BxICYXb3bOHwRT/bWRFoJsk/kA+SKgPQ6axlJ7fhV5oWPLfV0EoHQvwS3 N+eXrXtz6SK7yYo2ys8pZ4A0d+7WJJiVaw8ZwnDzW4J/0JiCPfbo4rvULQn6i1fu 6N11zaRY+ebFcqVfmRgI08k/1tjXVWcff8OgsvdfipdwlY32eWzX/gzZaxulaMcK Rtrz9PKL5iEWG8nU0AUIAEBvj3TtbO+RwKB9vvvCXCURQcXuRUbylcA/xRi2E2Yt jxSJJVYkO2tViP4Ox09YZ13SBdqImHaI8Y7uetv7V4qhtl4ZRfxLVYc18iXTsZYF WRBCN1NkXkuKssiQC8Y01fP1lfS4pBOuRk8/tckfsOJisp4iV2uq/qDENf5+wkKB D2yAcBEMPLcZI4RQxK8O =AlPE -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to validate or parse HTTP request headers ( tomcat version 6.0.18 )
Have tout triés Witherspoon filters? Le 14 janv. 2014 17:39, kalasareddy lingaraja k.lingaraj...@gmail.com a écrit : Hi i have task to validate or parse following http header Accept Accept-Charset Accept-Encoding Accept-Language Accept-Datetime Content-Length Content-MD5 Content-Type lets take Accept-Language as an example , if header language comes other than en-us i should reject the request with customized code response. let me know ways to achieve the task? can we do with any configuration files ? we are using tomcat 6.0.18 waiting for earliest replay
Re: How to validate or parse HTTP request headers ( tomcat version 6.0.18 )
kalasareddy lingaraja wrote: Hi i have task to validate or parse following http header Accept Accept-Charset Accept-Encoding Accept-Language Accept-Datetime Content-Length Content-MD5 Content-Type lets take Accept-Language as an example , if header language comes other than en-us i should reject the request with customized code response. let me know ways to achieve the task? can we do with any configuration files ? we are using tomcat 6.0.18 waiting for earliest replay Have a look at the URLRewriteFilter, here : http://tuckey.org/urlrewrite/ Or, if this is a school exercise, then you'll have a bit more reasearch and work to do yourself, to write your own servlet filter to do the job. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to validate or parse HTTP request headers ( tomcat version 6.0.18 )
yes i did it, but thing is that after parsing request in filter: if it is success then i should redirect the request to web service which running in embedded tomcat instance, could you help me how to shift control to web service from filter On Tue, Jan 14, 2014 at 11:10 PM, André Warnier a...@ice-sa.com wrote: kalasareddy lingaraja wrote: Hi i have task to validate or parse following http header Accept Accept-Charset Accept-Encoding Accept-Language Accept-Datetime Content-Length Content-MD5 Content-Type lets take Accept-Language as an example , if header language comes other than en-us i should reject the request with customized code response. let me know ways to achieve the task? can we do with any configuration files ? we are using tomcat 6.0.18 waiting for earliest replay Have a look at the URLRewriteFilter, here : http://tuckey.org/urlrewrite/ Or, if this is a school exercise, then you'll have a bit more reasearch and work to do yourself, to write your own servlet filter to do the job. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org