com.caucho.server.rewrite
Class SetRule

java.lang.Object
  extended by com.caucho.server.rewrite.AbstractRule
      extended by com.caucho.server.rewrite.AbstractRuleWithConditions
          extended by com.caucho.server.rewrite.SetRule
All Implemented Interfaces:
FilterChainMapper, Rule

public class SetRule
extends AbstractRuleWithConditions


Nested Class Summary
 
Nested classes/interfaces inherited from class com.caucho.server.rewrite.AbstractRule
AbstractRule.RewriteRuleAdmin
 
Constructor Summary
protected SetRule(RewriteDispatch rewriteDispatch)
           
 
Method Summary
 FilterChain dispatch(java.lang.String targetUri, java.lang.String queryString, FilterChain accept, FilterChainMapper next)
          Returns the FilterChain to invoke if the rule is successful, null indicates that the rule does not invoke a FilterChain.
 java.lang.String getTagName()
           
 void setRequestCharacterEncoding(java.lang.String requestCharacterEncoding)
          Sets the character encoding of the request, ServletRequest.setCharacterEncoding(String).
 void setRequestSecure(boolean requestSecure)
          Sets the security of the request, ServletRequest.isSecure().
 void setResponseCharacterEncoding(java.lang.String responseCharacterEncoding)
          Sets the character encoding of the response, ServletResponse.setCharacterEncoding(String).
 void setResponseContentType(java.lang.String responseContentType)
          Sets the content-type of the response, ServletResponse.setContentType(String).
 
Methods inherited from class com.caucho.server.rewrite.AbstractRuleWithConditions
addAnd, addNot, addOr, addUnless, addWhen, destroy, getFullUrlRegexp, getRegexp, init, map, mapImpl, required, rewrite, setFullUrlRegexp, setRegexp
 
Methods inherited from class com.caucho.server.rewrite.AbstractRule
clearCache, createAdmin, getFailFilterChainMapper, getLogPrefix, getName, getPassFilterChainMapper, getRewriteDispatch, isEnabled, register, setDisableAt, setEnableAt, setEnabled, setFailFilterChainMapper, setLogPrefix, setName, setPassFilterChainMapper, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetRule

protected SetRule(RewriteDispatch rewriteDispatch)
Method Detail

getTagName

public java.lang.String getTagName()

setRequestCharacterEncoding

public void setRequestCharacterEncoding(java.lang.String requestCharacterEncoding)
Sets the character encoding of the request, ServletRequest.setCharacterEncoding(String).


setRequestSecure

public void setRequestSecure(boolean requestSecure)
Sets the security of the request, ServletRequest.isSecure().


setResponseCharacterEncoding

public void setResponseCharacterEncoding(java.lang.String responseCharacterEncoding)
Sets the character encoding of the response, ServletResponse.setCharacterEncoding(String).


setResponseContentType

public void setResponseContentType(java.lang.String responseContentType)
Sets the content-type of the response, ServletResponse.setContentType(String).


dispatch

public FilterChain dispatch(java.lang.String targetUri,
                            java.lang.String queryString,
                            FilterChain accept,
                            FilterChainMapper next)
                     throws ServletException
Description copied from class: AbstractRuleWithConditions
Returns the FilterChain to invoke if the rule is successful, null indicates that the rule does not invoke a FilterChain.

Specified by:
dispatch in class AbstractRuleWithConditions
Parameters:
targetUri - the target uri, possibly rewritten
accept - a FilterChain that stops evaluation of rewrite rules and
Throws:
ServletException