public abstract class AbstractRule extends java.lang.Object implements Rule
Modifier and Type | Class and Description |
---|---|
static class |
AbstractRule.RewriteRuleAdmin |
Constructor and Description |
---|
AbstractRule(RewriteDispatch rewriteDispatch) |
Modifier and Type | Method and Description |
---|---|
protected void |
clearCache() |
protected AbstractRule.RewriteRuleAdmin |
createAdmin() |
void |
destroy() |
protected FilterChainMapper |
getFailFilterChainMapper() |
java.lang.String |
getLogPrefix() |
java.lang.String |
getName() |
protected FilterChainMapper |
getPassFilterChainMapper() |
protected RewriteDispatch |
getRewriteDispatch() |
void |
init() |
boolean |
isEnabled() |
void |
register() |
void |
setDisableAt(CronType disableAt) |
void |
setEnableAt(CronType enableAt) |
void |
setEnabled(boolean isEnabled) |
void |
setFailFilterChainMapper(FilterChainMapper failFilterChainMapper) |
void |
setLogPrefix(java.lang.String logPrefix) |
void |
setName(java.lang.String name) |
void |
setPassFilterChainMapper(FilterChainMapper passFilterChainMapper) |
void |
unregister() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTagName
map
public AbstractRule(RewriteDispatch rewriteDispatch)
protected RewriteDispatch getRewriteDispatch()
public void setName(java.lang.String name)
public java.lang.String getName()
public void setEnabled(boolean isEnabled)
public boolean isEnabled()
public void setDisableAt(CronType disableAt)
public void setEnableAt(CronType enableAt)
public void setPassFilterChainMapper(FilterChainMapper passFilterChainMapper)
setPassFilterChainMapper
in interface Rule
protected final FilterChainMapper getPassFilterChainMapper()
public void setFailFilterChainMapper(FilterChainMapper failFilterChainMapper)
setFailFilterChainMapper
in interface Rule
protected final FilterChainMapper getFailFilterChainMapper()
public void setLogPrefix(java.lang.String logPrefix)
public java.lang.String getLogPrefix()
@PostConstruct public void init() throws ConfigException
ConfigException
public void unregister()
unregister
in interface Rule
protected AbstractRule.RewriteRuleAdmin createAdmin()
protected void clearCache()
@PreDestroy public void destroy()