Class CompositeHeaderWriter
- java.lang.Object
-
- org.springframework.security.web.header.writers.CompositeHeaderWriter
-
- All Implemented Interfaces:
HeaderWriter
public class CompositeHeaderWriter extends java.lang.Object implements HeaderWriter
AHeaderWriter
that delegates to several otherHeaderWriter
s.- Since:
- 5.2
-
-
Constructor Summary
Constructors Constructor Description CompositeHeaderWriter(java.util.List<HeaderWriter> headerWriters)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
writeHeaders(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Create aHeader
instance.
-
-
-
Constructor Detail
-
CompositeHeaderWriter
public CompositeHeaderWriter(java.util.List<HeaderWriter> headerWriters)
Creates a new instance.- Parameters:
headerWriters
- theHeaderWriter
instances to write out headers to theHttpServletResponse
.
-
-
Method Detail
-
writeHeaders
public void writeHeaders(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Description copied from interface:HeaderWriter
Create aHeader
instance.- Specified by:
writeHeaders
in interfaceHeaderWriter
- Parameters:
request
- the requestresponse
- the response
-
-