iCMS.cmsd
Class CmsdHandler

java.lang.Object
  extended by java.lang.Thread
      extended by luky.serverSimple.Handler
          extended by iCMS.cmsd.CmsdHandler
All Implemented Interfaces:
Runnable

public class CmsdHandler
extends Handler

Command Handler Class is used to handle iCMS clients

Version:
3.0.1
Author:
Chris Lukassen
 

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class luky.serverSimple.Handler
in, out, parent, propsMan
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CmsdHandler(Hashtable userData, Server parent, BufferedReader in, PrintWriter out, PropertyManager propsMan, String caller, TrapdServer trapdServer, PollerdServer pollerdServer)
           
 
Method Summary
protected  int destroy(BufferedReader in, PrintWriter out)
          destroy is called before the thread is closed, it allows for the user to close existing streams or handle notifications
protected  int handleUserCommand(BufferedReader in, PrintWriter out, String command)
           
 void myEventOccurred(MyEvent evt)
           
 
Methods inherited from class luky.serverSimple.Handler
decrypt, run
 
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, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CmsdHandler

public CmsdHandler(Hashtable userData,
                   Server parent,
                   BufferedReader in,
                   PrintWriter out,
                   PropertyManager propsMan,
                   String caller,
                   TrapdServer trapdServer,
                   PollerdServer pollerdServer)
Method Detail

handleUserCommand

protected int handleUserCommand(BufferedReader in,
                                PrintWriter out,
                                String command)
Overrides:
handleUserCommand in class Handler

myEventOccurred

public void myEventOccurred(MyEvent evt)

destroy

protected int destroy(BufferedReader in,
                      PrintWriter out)
destroy is called before the thread is closed, it allows for the user to close existing streams or handle notifications

Overrides:
destroy in class Handler