public class JSecurityCheckNoCacheValve extends org.apache.catalina.valves.ValveBase
The container managed security implementation using j_security_check does not return Cache-Control headers to the client. This Valve will add Cache-Control: no-cache, no-store, must-revalidate and Pragma: no-cache headers to the j_security_check response.
This is configured in the context.xml, or server.xml file using the following syntax:
<Valve className="com.bluelotussoftware.tomcat.security.valves.JSecurityCheckNoCacheValve" />
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 |
|---|
JSecurityCheckNoCacheValve() |
| 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 JSecurityCheckNoCacheValve()
public void invoke(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response) throws IOException, javax.servlet.ServletException
Adds Cache-Control: no-cache, no-store, must-revalidate and Pragma: no-cache headers to the j_security_check response.
IOExceptionjavax.servlet.ServletExceptionCopyright © 2017–2019 Blue Lotus Software, LLC.. All rights reserved.