|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
com.prolixtech.jaminid.Connection
public class Connection
The connection is a thread-of-service spanwed by the Daemon. The connection handles the IO part of the Response/Oracle/Request paradigm by creating the request and response objects, and calling the Oracle at the appropriate time to extract the output which will be send to the client.
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 | |
---|---|
Connection(java.net.Socket activeSocket,
Daemon masterDaemon)
default constructor to create a Connection |
Method Summary | |
---|---|
static java.lang.String |
getGMTString(java.util.Date d)
|
java.lang.String |
getIPAddressString()
|
void |
run()
The thread runs here. |
protected void |
sendString(byte[] bytes)
|
protected void |
sendString(java.lang.Object string)
Sends a string to the client |
Methods inherited from class java.lang.Thread |
---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Connection(java.net.Socket activeSocket, Daemon masterDaemon) throws java.io.IOException
activeSocket
- the socket on which the connection was madeemasterDaemon
- the daemon that spanwed this connection
java.io.IOException
Method Detail |
---|
public java.lang.String getIPAddressString()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
protected void sendString(java.lang.Object string) throws java.io.IOException
string
-
java.io.IOException
protected void sendString(byte[] bytes)
public static java.lang.String getGMTString(java.util.Date d)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |