This week's book giveaway is in the Performance forum. We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line! See this thread for details.
Sounds like the sort of thing covered in the API, did you check?
posted 10 years ago
From the API..
public void addHeader(java.lang.String name, java.lang.String value) Adds a response header with the given name and value. This method allows response headers to have multiple values. Parameters: name - the name of the header value - the additional header value