com.caucho.rewrite
Class SetVary
java.lang.Object
com.caucho.rewrite.AbstractRewriteFilter
com.caucho.rewrite.SetVary
- All Implemented Interfaces:
- RewriteFilter
@Configurable
public class SetVary
- extends AbstractRewriteFilter
Sets a response Vary header to control caching based on input headers,
e.g. varying depending on the Locale.
<web-app xmlns="http://caucho.com/ns/resin"
xmlns:resin="urn:java:com.caucho.resin">
<resin:SetVary regexp="^/foo" value="Bar"/>
</web-app>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SetVary
public SetVary()
setValue
public void setValue(java.lang.String value)
- Sets the Vary header
init
public void init()
throws ConfigException
- Throws:
ConfigException
createFilterChain
protected FilterChain createFilterChain(java.lang.String uri,
java.lang.String queryString,
FilterChain next)
- Overrides:
createFilterChain
in class AbstractRewriteFilter