iCMS.trapd
Class TrapdHandler

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

public class TrapdHandler
extends Handler

Trapd Handler Class is used to handle trapd clients

Version:
2.0.0
Author:
Chris Lukassen
 

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
protected  Server myParent
          variables
 
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
TrapdHandler(Hashtable userData, Server parent, BufferedReader in, PrintWriter out, PropertyManager propsMan, String caller)
           
 
Method Summary
 int destroy(BufferedReader in, PrintWriter out)
           
 int handleUserCommand(BufferedReader in, PrintWriter out, String command)
           
 int trapOccured(String trap)
           
 boolean trapOn()
           
 
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
 

Field Detail

myParent

protected Server myParent
variables

Constructor Detail

TrapdHandler

public TrapdHandler(Hashtable userData,
                    Server parent,
                    BufferedReader in,
                    PrintWriter out,
                    PropertyManager propsMan,
                    String caller)
Method Detail

trapOn

public boolean trapOn()

trapOccured

public int trapOccured(String trap)

handleUserCommand

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

destroy

public int destroy(BufferedReader in,
                   PrintWriter out)
Overrides:
destroy in class Handler