com.caucho.server.rewrite
Class AbstractRule

java.lang.Object
  extended by com.caucho.server.rewrite.AbstractRule
All Implemented Interfaces:
FilterChainMapper, Rule
Direct Known Subclasses:
AbstractRuleWithConditions, ImportRule

public abstract class AbstractRule
extends java.lang.Object
implements Rule


Nested Class Summary
static class AbstractRule.RewriteRuleAdmin
           
 
Constructor Summary
AbstractRule(RewriteDispatch rewriteDispatch)
           
 
Method Summary
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.caucho.server.rewrite.Rule
getTagName
 
Methods inherited from interface com.caucho.server.rewrite.FilterChainMapper
map
 

Constructor Detail

AbstractRule

public AbstractRule(RewriteDispatch rewriteDispatch)
Method Detail

getRewriteDispatch

protected RewriteDispatch getRewriteDispatch()

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

setEnabled

public void setEnabled(boolean isEnabled)

isEnabled

public boolean isEnabled()

setDisableAt

public void setDisableAt(CronType disableAt)

setEnableAt

public void setEnableAt(CronType enableAt)

setPassFilterChainMapper

public void setPassFilterChainMapper(FilterChainMapper passFilterChainMapper)
Specified by:
setPassFilterChainMapper in interface Rule

getPassFilterChainMapper

protected final FilterChainMapper getPassFilterChainMapper()

setFailFilterChainMapper

public void setFailFilterChainMapper(FilterChainMapper failFilterChainMapper)
Specified by:
setFailFilterChainMapper in interface Rule

getFailFilterChainMapper

protected final FilterChainMapper getFailFilterChainMapper()

setLogPrefix

public void setLogPrefix(java.lang.String logPrefix)

getLogPrefix

public java.lang.String getLogPrefix()

init

@PostConstruct
public void init()
          throws ConfigException
Throws:
ConfigException

register

public void register()
Specified by:
register in interface Rule

unregister

public void unregister()
Specified by:
unregister in interface Rule

createAdmin

protected AbstractRule.RewriteRuleAdmin createAdmin()

clearCache

protected void clearCache()

destroy

@PreDestroy
public void destroy()
Specified by:
destroy in interface Rule