|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--com.xfactorstudio.ahawasi.ClientThread
The thread for a client
Field Summary | |
java.io.BufferedReader |
in
|
java.io.PrintWriter |
out
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
ClientThread(java.net.Socket socket,
java.util.Vector clientList,
java.lang.String messageHandler,
SocketService parent,
Ahawasi server)
|
Method Summary | |
java.lang.String |
getClientIP()
returns the client IP address |
java.util.Hashtable |
getSessionVariables()
returns the current session variables |
long |
getTotalBytesRecieved()
|
long |
getTotalBytesSent()
|
long |
getUserId()
returns the userId of this client |
java.lang.String |
getUserName()
returns the current username of this client |
void |
kill()
kills this client thread |
void |
run()
The main method of this thread |
void |
send(java.lang.String message)
Sends the specified message the this client |
void |
setUserName(java.lang.String userName)
sets the current username of this client |
java.lang.String |
toXML()
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, 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 |
public java.io.PrintWriter out
public java.io.BufferedReader in
Constructor Detail |
public ClientThread(java.net.Socket socket, java.util.Vector clientList, java.lang.String messageHandler, SocketService parent, Ahawasi server)
Method Detail |
public java.lang.String getUserName()
public void setUserName(java.lang.String userName)
public long getUserId()
public java.lang.String getClientIP()
public java.util.Hashtable getSessionVariables()
public void kill()
public void run()
run
in class java.lang.Thread
public void send(java.lang.String message)
public long getTotalBytesSent()
public long getTotalBytesRecieved()
public java.lang.String toXML()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |