sunlabs.brazil.tcl
Class TclRePollHandler
java.lang.Object
  |
  +--java.lang.Thread
        |
        +--sunlabs.brazil.handler.PollHandler
              |
              +--sunlabs.brazil.handler.RePollHandler
                    |
                    +--sunlabs.brazil.tcl.TclRePollHandler
- All Implemented Interfaces: 
- Handler, Runnable
- public class TclRePollHandler- extends RePollHandler
Post-process all "polled" properties with tcl code.
 The following server properties are used:
 
 - script	
- The name of the TCL script to call at each request.
		The interpreter is created with the following 
		global variables.  The script is
		"evaluted" once on startup.
		
		- prefix The handler prefix
		
- server The current server instance
		
- logLevel The current server log level setting
		
- argv0 The name of the running script
		
 The tcl procedure "process" is called with the
		java properties object.  Any modifications to that
		object are done here.
- debug	
- If set, the "script" is sourced each time.
 
 
 
 
 
 
 
 
 
 
| Methods inherited from class java.lang.Thread | 
| activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield | 
 
 
TclRePollHandler
public TclRePollHandler()
init
public boolean init(Server server,
                    String prefix)
- Create a tcl interp, extract the properties, and run the init script
 
- 
- Specified by:
- initin interface- Handler
- Overrides:
- initin class- RePollHandler
 
- 
- Parameters:
- server- The HTTP server that created this- Handler.
		Typical- Handlers will use- Server.propsto obtain run-time configuration information.
- prefix- The handlers name.
		The string this- Handlermay prepend to all
		of the keys that it uses to extract configuration information
		from- Server.props.  This is set (by the- Serverand- ChainHandler) to help avoid configuration parameter
		namespace collisions.
- Returns:
- trueif this- Handlerinitialized
		successfully,- falseotherwise.  If- falseis returned, this- Handlershould not be used.
 
fillProps
public void fillProps(Properties props,
                      HttpRequest target)
               throws IOException
- Fill the properties from the input stream
 
- 
- Overrides:
- fillPropsin class- RePollHandler
 
- 
- IOException