You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ole Ersoy <ol...@gmail.com> on 2011/09/04 02:05:00 UTC

Servlet 3.0 Part Header Keys

Hi,

Anyone know if the the keys for the various javax.servlet.http.Part headers are available as constants anywhere?  I'd like to do something like:

part.getHeader(Part.FILENAME);...instead of
part.getHeader("filename");

TIA,
- Ole

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


Re: Servlet 3.0 Part Header Keys

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ole,

On 9/3/2011 8:05 PM, Ole Ersoy wrote:
> Anyone know if the the keys for the various
> javax.servlet.http.Part headers are available as constants
> anywhere?  I'd like to do something like:
> 
> part.getHeader(Part.FILENAME);...instead of 
> part.getHeader("filename");

You could read the Servlet 3.0 spec. Or the javadocs.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5mdV4ACgkQ9CaO5/Lv0PA6TACeOvI+V4o+OjS1fwWNIBVXk5sM
WvgAniOsfB55w9JwiEcfyWRkcfWRQXfd
=DpK/
-----END PGP SIGNATURE-----

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