restart.server
Class ServerThread

java.lang.Object
  extended by java.lang.Thread
      extended by restart.server.ServerThread
All Implemented Interfaces:
java.lang.Runnable

public class ServerThread
extends java.lang.Thread

Author:
Thibault Ducray

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ServerThread(RestServer mainServer, java.net.Socket socket, RestServerPolicy policy)
           
 
Method Summary
 Service getCalledService()
           
 java.net.Socket getSocket()
           
 boolean isConnected()
           
 void run()
           
 void stopServerThread()
           
 java.lang.String toString()
           
 
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, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerThread

public ServerThread(RestServer mainServer,
                    java.net.Socket socket,
                    RestServerPolicy policy)
Method Detail

getSocket

public java.net.Socket getSocket()

stopServerThread

public void stopServerThread()

isConnected

public boolean isConnected()

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

getCalledService

public Service getCalledService()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Thread