public class SetRule extends AbstractRuleWithConditions
AbstractRule.RewriteRuleAdmin
Modifier | Constructor and Description |
---|---|
protected |
SetRule(RewriteDispatch rewriteDispatch) |
Modifier and Type | Method and Description |
---|---|
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) . |
addAnd, addNot, addOr, addUnless, addWhen, destroy, getFullUrlRegexp, getRegexp, init, map, mapImpl, required, rewrite, setFullUrlRegexp, setRegexp
clearCache, createAdmin, getFailFilterChainMapper, getLogPrefix, getName, getPassFilterChainMapper, getRewriteDispatch, isEnabled, register, setDisableAt, setEnableAt, setEnabled, setFailFilterChainMapper, setLogPrefix, setName, setPassFilterChainMapper, unregister
protected SetRule(RewriteDispatch rewriteDispatch)
public java.lang.String getTagName()
public void setRequestCharacterEncoding(java.lang.String requestCharacterEncoding)
ServletRequest.setCharacterEncoding(String)
.public void setRequestSecure(boolean requestSecure)
ServletRequest.isSecure()
.public void setResponseCharacterEncoding(java.lang.String responseCharacterEncoding)
ServletResponse.setCharacterEncoding(String)
.public void setResponseContentType(java.lang.String responseContentType)
ServletResponse.setContentType(String)
.public FilterChain dispatch(java.lang.String targetUri, java.lang.String queryString, FilterChain accept, FilterChainMapper next) throws ServletException
AbstractRuleWithConditions
dispatch
in class AbstractRuleWithConditions
targetUri
- the target uri, possibly rewrittenaccept
- a FilterChain that stops evaluation of rewrite rules andServletException