views:

81

answers:

1

Headers are always Strings. Even the getIntHeader() method always takes a String representing the name of the header; so what is the int about?

+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
I took the liberty of linking to the Java EE 6 docs; hope that's okay.
Michael Myers
Sounds good to me.
danben