public class XFrameOptionsHttpHeadersWriter extends java.lang.Object implements HttpHeadersWriter
Modifier and Type | Class and Description |
---|---|
static class |
XFrameOptionsHttpHeadersWriter.Mode
The X-Frame-Options values.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
X_FRAME_OPTIONS |
Constructor and Description |
---|
XFrameOptionsHttpHeadersWriter() |
Modifier and Type | Method and Description |
---|---|
void |
setMode(XFrameOptionsHttpHeadersWriter.Mode mode)
Sets the X-Frame-Options mode.
|
<any> |
writeHttpHeaders(ServerWebExchange exchange)
Write the headers to the response.
|
public static final java.lang.String X_FRAME_OPTIONS
public <any> writeHttpHeaders(ServerWebExchange exchange)
HttpHeadersWriter
writeHttpHeaders
in interface HttpHeadersWriter
Supplier
of the
ServerHttpResponse#beforeCommit(Supplier)
.public void setMode(XFrameOptionsHttpHeadersWriter.Mode mode)
mode
-