autohit.server.service
Class HttpCommandHelper

java.lang.Object
  extended byjava.lang.Thread
      extended byautohit.server.service.HttpCommandHelper
All Implemented Interfaces:
java.lang.Runnable

public class HttpCommandHelper
extends java.lang.Thread

Http Command Helper.
GET /command?param1¶m2¶mN
The ? and & are interchangable.

Version:
1.0 Version History EPG - Initial - 05Apr05
Author:
Erich P. Gatejen

Field Summary
 java.net.Socket connection
          Socket connection
 AutohitLogInjectorWrapper myLog
          Logging mechinism
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
HttpCommandHelper()
          Default constructor
 
Method Summary
 void init(java.net.Socket ins, AutohitLogInjectorWrapper logger, Injector cin, SimTextCommand c, HttpCommandService caller)
          Complete construction.
 void respond(java.lang.String content)
           
 void run()
          Run the context
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

connection

public java.net.Socket connection
Socket connection


myLog

public AutohitLogInjectorWrapper myLog
Logging mechinism

Constructor Detail

HttpCommandHelper

public HttpCommandHelper()
Default constructor

Method Detail

init

public void init(java.net.Socket ins,
                 AutohitLogInjectorWrapper logger,
                 Injector cin,
                 SimTextCommand c,
                 HttpCommandService caller)
Complete construction. This will be called when the VM is initialized.


run

public void run()
Run the context


respond

public void respond(java.lang.String content)
             throws java.lang.Throwable
Throws:
java.lang.Throwable


Test.