edu.sc.seis.sod.subsetter.availableData
Class AvailableDataScript

java.lang.Object
  extended by edu.sc.seis.sod.subsetter.AbstractScriptSubsetter
      extended by edu.sc.seis.sod.subsetter.availableData.AvailableDataScript
All Implemented Interfaces:
SodElement, AvailableDataSubsetter, Subsetter

public class AvailableDataScript
extends AbstractScriptSubsetter
implements AvailableDataSubsetter


Field Summary
 
Fields inherited from class edu.sc.seis.sod.subsetter.AbstractScriptSubsetter
config, engine, factory, script, scriptType
 
Constructor Summary
AvailableDataScript(org.w3c.dom.Element config)
           
 
Method Summary
 StringTree accept(CacheEvent event, ChannelImpl channel, RequestFilter[] request, RequestFilter[] available, CookieJar cookieJar)
           
 StringTree runScript(VelocityEvent event, VelocityChannel channel, java.util.List<VelocityRequest> request, java.util.List<VelocityRequest> available, CookieJar cookieJar)
          Run the script with the arguments as predefined variables.
 
Methods inherited from class edu.sc.seis.sod.subsetter.AbstractScriptSubsetter
cleanScript, eval, preeval, pullResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvailableDataScript

public AvailableDataScript(org.w3c.dom.Element config)
Method Detail

accept

public StringTree accept(CacheEvent event,
                         ChannelImpl channel,
                         RequestFilter[] request,
                         RequestFilter[] available,
                         CookieJar cookieJar)
                  throws java.lang.Exception
Specified by:
accept in interface AvailableDataSubsetter
Throws:
java.lang.Exception

runScript

public StringTree runScript(VelocityEvent event,
                            VelocityChannel channel,
                            java.util.List<VelocityRequest> request,
                            java.util.List<VelocityRequest> available,
                            CookieJar cookieJar)
                     throws java.lang.Exception
Run the script with the arguments as predefined variables.

Throws:
java.lang.Exception