public class ClientThread extends Thread
TCPSocketServer
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected String |
clientRequest |
protected Socket |
clientSocket |
protected int |
debug_ |
protected DataInputStream |
is |
protected PrintStream |
os |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ClientThread() |
ClientThread(Socket clientSocket) |
Modifier and Type | Method and Description |
---|---|
Socket |
getClientSocket()
Get Method for class field 'clientSocket'.
|
protected List<String> |
readOutput(InputStream i)
Chunks the output from the passed inputStream into individual lines/Strings.
|
void |
run()
The thread execution method.
|
void |
setClientSocket(Socket clientSocket)
Set Method for class field 'clientSocket'.
|
activeCount, checkAccess, clone, 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
protected int debug_
protected String clientRequest
protected DataInputStream is
protected PrintStream os
protected Socket clientSocket
public ClientThread()
public ClientThread(Socket clientSocket)
protected List<String> readOutput(InputStream i)
public void setClientSocket(Socket clientSocket)
clientSocket
- is the value to set this class field to.public Socket getClientSocket()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses