com.caucho.rewrite
Class SetHeader

java.lang.Object
  extended by com.caucho.rewrite.AbstractRewriteFilter
      extended by com.caucho.rewrite.SetHeader
All Implemented Interfaces:
RewriteFilter

@Configurable
public class SetHeader
extends AbstractRewriteFilter

Sets a response header in a rewrite rule or as a top-level filter.

 <resin:SetHeader url-pattern="/foo/*"
                  name="Foo" value="bar"/>
 


Constructor Summary
SetHeader()
           
 
Method Summary
protected  FilterChain createFilterChain(java.lang.String uri, java.lang.String queryString, FilterChain next)
           
 void init()
           
 void setName(java.lang.String name)
          Sets the HTTP header name
 void setValue(java.lang.String value)
          Sets the HTTP header value
 
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

SetHeader

public SetHeader()
Method Detail

setName

@Configurable
public void setName(java.lang.String name)
Sets the HTTP header name


setValue

public void setValue(java.lang.String value)
Sets the HTTP header value


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