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