billbarker 2002/11/15 20:49:22
Modified: catalina/src/share/org/apache/catalina/authenticator
AuthenticatorBase.java
Log:
Taking Craig's suggestion and changing the attribute from "noProxyCaching" to
"disableProxyCaching".
Revision Changes Path
1.35 +10 -10
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/authenticator/AuthenticatorBase.java
Index: AuthenticatorBase.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/authenticator/AuthenticatorBase.java,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- AuthenticatorBase.java 15 Nov 2002 05:29:35 -0000 1.34
+++ AuthenticatorBase.java 16 Nov 2002 04:49:22 -0000 1.35
@@ -198,7 +198,7 @@
* Flag to determine if we disable proxy caching, or leave the issue
* up to the webapp developer.
*/
- protected boolean noProxyCaching = true;
+ protected boolean disableProxyCaching = true;
/**
* The lifecycle event support for this component.
@@ -397,8 +397,8 @@
* Return the flag that states if we add headers to disable caching by
* proxies.
*/
- public boolean getNoProxyCaching() {
- return noProxyCaching;
+ public boolean getDisableProxyCaching() {
+ return disableProxyCaching;
}
/**
@@ -407,8 +407,8 @@
* @param nocache <code>true</code> if we add headers to disable proxy
* caching, <code>false</code> if we leave the headers alone.
*/
- public void setNoProxyCaching(boolean nocache) {
- noProxyCaching = nocache;
+ public void setDisableProxyCaching(boolean nocache) {
+ disableProxyCaching = nocache;
}
// --------------------------------------------------------- Public Methods
@@ -498,7 +498,7 @@
// Make sure that constrained resources are not cached by web proxies
// or browsers as caching can provide a security hole
- if (noProxyCaching &&
+ if (disableProxyCaching &&
!(((HttpServletRequest) hrequest.getRequest()).isSecure())) {
HttpServletResponse sresponse =
(HttpServletResponse) response.getResponse();
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>