tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Pawson <dave.paw...@gmail.com>
Subject Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the place to constrain the mime type?
Date Fri, 06 Feb 2009 14:24:50 GMT
2009/2/6 Caldarale, Charles R <Chuck.Caldarale@unisys.com>:
>> From: Dave Pawson [mailto:dave.pawson@gmail.com]
>> Subject: Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the
>> place to constrain the mime type?
>>
>> Unless the client specifies that one single mime
>> type (and no other), I want to reject it
>
> Unless you have an extremely specialized client in mind, you will be rejecting all requests.
 No browser will ever limit itself to a single mime type.


That's it. Again, my code, hence very specialised.
No browsers, IE or FF! Just my java end point.

I'm coming down in favour of a valve, rather than a filter, to make it
container specific,
although I can't find much documentation on valve coding. Something that perhaps
checks the request string and header?

Any suggestions please?

regards



-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

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


Mime
View raw message