com.caucho.server.rewrite
Class ImportRule

java.lang.Object
  extended by com.caucho.server.rewrite.AbstractRule
      extended by com.caucho.server.rewrite.ImportRule
All Implemented Interfaces:
FilterChainMapper, Rule, AlarmListener, java.util.EventListener

public class ImportRule
extends AbstractRule
implements AlarmListener


Nested Class Summary
static class ImportRule.RewriteImportAdmin
           
 
Nested classes/interfaces inherited from class com.caucho.server.rewrite.AbstractRule
AbstractRule.RewriteRuleAdmin
 
Constructor Summary
protected ImportRule(RewriteDispatch rewriteDispatch)
           
 
Method Summary
protected  AbstractRule.RewriteRuleAdmin createAdmin()
           
 void destroy()
           
 long getDependencyCheckInterval()
           
 java.lang.String getRedeployError()
           
 java.lang.String getTagName()
           
 void handleAlarm(Alarm alarm)
          Handles a callback from an alarm.
 void init()
           
 FilterChain map(java.lang.String uri, java.lang.String query, FilterChain accept)
           
 void setDependencyCheckInterval(Period dependencyCheckInterval)
           
 void setFailFilterChainMapper(FilterChainMapper failFilterChainMapper)
           
 void setOptional(boolean isOptional)
           
 void setPassFilterChainMapper(FilterChainMapper passFilterChainMapper)
           
 void setPath(Path path)
           
 
Methods inherited from class com.caucho.server.rewrite.AbstractRule
clearCache, getFailFilterChainMapper, getLogPrefix, getName, getPassFilterChainMapper, getRewriteDispatch, isEnabled, register, setDisableAt, setEnableAt, setEnabled, setLogPrefix, setName, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportRule

protected ImportRule(RewriteDispatch rewriteDispatch)
Method Detail

getTagName

public java.lang.String getTagName()
Specified by:
getTagName in interface Rule

setDependencyCheckInterval

public void setDependencyCheckInterval(Period dependencyCheckInterval)

getDependencyCheckInterval

public long getDependencyCheckInterval()

getRedeployError

public java.lang.String getRedeployError()

setOptional

public void setOptional(boolean isOptional)

setPath

public void setPath(Path path)

init

@PostConstruct
public void init()
Overrides:
init in class AbstractRule

createAdmin

protected AbstractRule.RewriteRuleAdmin createAdmin()
Overrides:
createAdmin in class AbstractRule

setPassFilterChainMapper

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

setFailFilterChainMapper

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

map

public FilterChain map(java.lang.String uri,
                       java.lang.String query,
                       FilterChain accept)
                throws ServletException
Specified by:
map in interface FilterChainMapper
Throws:
ServletException

handleAlarm

public void handleAlarm(Alarm alarm)
Description copied from interface: AlarmListener
Handles a callback from an alarm.

Specified by:
handleAlarm in interface AlarmListener

destroy

public void destroy()
Specified by:
destroy in interface Rule
Overrides:
destroy in class AbstractRule