com.ibm.di.eventhandler
Class HTTPSwitchboard

java.lang.Object
  extended by java.lang.Thread
      extended by com.ibm.di.server.Monitor
          extended by com.ibm.di.eventhandler.Switchboard
              extended by com.ibm.di.eventhandler.HTTPSwitchboard
All Implemented Interfaces:
TaskInterface, VersionInfoInterface, ActionListener, Runnable, EventListener

public class HTTPSwitchboard
extends Switchboard
implements TaskInterface


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
HTTPSwitchboard()
          Constructor for HTTP listener.
HTTPSwitchboard(Socket socket, HTTPSwitchboard parent)
          Constructor used by listener thread to handle incoming requests.
 
Method Summary
 Object getConfig(String param)
           
 AssemblyLineComponent getConnector(String connector)
          Task Interface
 Entry getResult()
           
 String getVersion()
          Return version information
 Entry getWork()
           
 void init()
          Perform per thread initialization.
 void processRequest()
          Process incoming request.
 void run()
          run method
 void setExitRequested(boolean value)
          Override setExitRequested
 
Methods inherited from class com.ibm.di.eventhandler.Switchboard
actionPerformed, addEventListener, close, debug, debugBreak, debugMsg, dispatchEvent, dump, dumpEntry, dumpProperties, enableDebug, exitProcess, exitProcess, exitRequested, fireEvent, getConfiguration, getDebug, getDebugger, getEventHandlerListener, getExitMessage, getExitRequested, getInterceptor, getLog, getLogCategory, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParam, getParent, getProperty, getRecording, getScriptEngine, getServer, getStats, getTaskName, logmsg, logmsg, removeEventHandlerListener, removeEventListener, setConfiguration, setDebug, setDebugger, setEventHandlerListener, setExitMessage, setInterceptor, setLog, setLogCategory, setParam, setParent, setProperty, setRecording, start
 
Methods inherited from class com.ibm.di.server.Monitor
addActionListener, addThread, allThreadsStopped, fireListener, removeActionListener, removeThread, runningALs, runningEHs, setMonitorMessage, threadStarted, threadStopped
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.di.server.TaskInterface
debugBreak, debugMsg, getLog, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParent, getScriptEngine, logmsg
 

Constructor Detail

HTTPSwitchboard

public HTTPSwitchboard()
Constructor for HTTP listener.


HTTPSwitchboard

public HTTPSwitchboard(Socket socket,
                       HTTPSwitchboard parent)
Constructor used by listener thread to handle incoming requests.

Method Detail

setExitRequested

public void setExitRequested(boolean value)
Override setExitRequested

Overrides:
setExitRequested in class Switchboard

init

public void init()
Perform per thread initialization.


run

public void run()
run method

Specified by:
run in interface Runnable
Overrides:
run in class Thread

processRequest

public void processRequest()
                    throws Exception
Process incoming request.

Throws:
Exception

getConnector

public AssemblyLineComponent getConnector(String connector)
Task Interface

Specified by:
getConnector in interface TaskInterface

getWork

public Entry getWork()
Specified by:
getWork in interface TaskInterface

getResult

public Entry getResult()
Specified by:
getResult in interface TaskInterface

getConfig

public Object getConfig(String param)
Specified by:
getConfig in interface TaskInterface

getVersion

public String getVersion()
Return version information

Specified by:
getVersion in interface VersionInfoInterface