Class CompositeHeaderWriter
java.lang.Object
org.springframework.security.web.header.writers.CompositeHeaderWriter
- All Implemented Interfaces:
HeaderWriter
A
HeaderWriter
that delegates to several other HeaderWriter
s.- Since:
- 5.2
-
Constructor Summary
ConstructorDescriptionCompositeHeaderWriter
(List<HeaderWriter> headerWriters) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
writeHeaders
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Create aHeader
instance.
-
Constructor Details
-
CompositeHeaderWriter
Creates a new instance.- Parameters:
headerWriters
- theHeaderWriter
instances to write out headers to theHttpServletResponse
.
-
-
Method Details
-
writeHeaders
public void writeHeaders(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Description copied from interface:HeaderWriter
Create aHeader
instance.- Specified by:
writeHeaders
in interfaceHeaderWriter
- Parameters:
request
- the requestresponse
- the response
-