Headers are always Strings. Even the getIntHeader()
method always takes a String representing the name of the header; so what is the int about?
views:
81answers:
1
+3
A:
getIntHeader()
accepts the name of the header and returns the value of the header as an int, if it is possible to do so. So for instance if you had a header "my_header" whose value was equal to the String "307", getIntHeader("my_header")
would return the int 307, whereas getHeader("my_header")
would simply return the String.
See the JavaDoc.
danben
2010-01-16 18:18:18
I took the liberty of linking to the Java EE 6 docs; hope that's okay.
Michael Myers
2010-01-16 18:34:46
Sounds good to me.
danben
2010-01-16 18:35:35