com.caucho.rewrite
Class SetVary

java.lang.Object
  extended by com.caucho.rewrite.AbstractRewriteFilter
      extended by 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>
 


Constructor Summary
SetVary()
           
 
Method Summary
protected  FilterChain createFilterChain(java.lang.String uri, java.lang.String queryString, FilterChain next)
           
 void init()
           
 void setValue(java.lang.String value)
          Sets the Vary header
 
Methods inherited from class com.caucho.rewrite.AbstractRewriteFilter
add, add, add, isForward, isInclude, isRequest, map, setRegexp, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetVary

public SetVary()
Method Detail

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