public class XFrameOptionsValve extends org.apache.catalina.valves.ValveBase
This Valve is designed to add an
X-Frame-Options : SAMEORIGIN header to the Response
object.
This is configured in the context.xml, or server.xml file using the following syntax:
<valve> <class-name>com.bluelotussoftware.tomcat.security.valves.XFrameOptionsValve</class-name> </valve>
asyncSupported, container, containerLog, next, smAFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT| Constructor and Description |
|---|
XFrameOptionsValve() |
| Modifier and Type | Method and Description |
|---|---|
void |
invoke(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response) |
backgroundProcess, getContainer, getDomainInternal, getNext, getObjectNameKeyProperties, initInternal, isAsyncSupported, setAsyncSupported, setContainer, setNext, startInternal, stopInternal, toStringdestroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister, unregisterpublic XFrameOptionsValve()
public void invoke(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response) throws IOException, javax.servlet.ServletException
Adds X-Frame-Options : SAMEORIGIN header to the
Response object.
IOExceptionjavax.servlet.ServletExceptionCopyright © 2017–2019 Blue Lotus Software, LLC.. All rights reserved.