public class CompositeHeaderWriter extends java.lang.Object implements HeaderWriter
HeaderWriter
that delegates to several other HeaderWriter
s.Constructor and Description |
---|
CompositeHeaderWriter(java.util.List<HeaderWriter> headerWriters)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
writeHeaders(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Create a
Header instance. |
public CompositeHeaderWriter(java.util.List<HeaderWriter> headerWriters)
headerWriters
- the HeaderWriter
instances to write out headers to the
HttpServletResponse
.public void writeHeaders(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
HeaderWriter
Header
instance.writeHeaders
in interface HeaderWriter
request
- the requestresponse
- the response