|
xmlBlaster 2.1.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.xmlBlaster.contrib.socketgetter.SocketConnectorThread
class SocketConnectorThread
The socket thread which handles a single request from a client.
The socket-thread answers one get request and closes the connection
right after the request has been answered.
The request must start with get otherwise no message will be delivered.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private I_XmlBlasterAccess |
connection
The connection to the xmlBlaster server. |
private Global |
glob
The user global. |
private static java.util.logging.Logger |
log
Holds the logger for this class. |
private java.net.Socket |
socket
The actual socket. |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
SocketConnectorThread(Global glob,
I_XmlBlasterAccess connection,
java.net.Socket socket)
Creates the thread. |
|
| Method Summary | |
|---|---|
private static java.lang.String |
getOID(java.net.Socket socket)
Extract the oid from the given request out of the clients socket input stream. |
void |
run()
Starts the actual thread. |
| 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, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static java.util.logging.Logger log
private java.net.Socket socket
private Global glob
private I_XmlBlasterAccess connection
| Constructor Detail |
|---|
public SocketConnectorThread(Global glob,
I_XmlBlasterAccess connection,
java.net.Socket socket)
glob - the user globalconnection - the connection to the xmlBlaster server.socket - the accepted socket for tha actual (telnet) client.| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadprivate static final java.lang.String getOID(java.net.Socket socket)
|
xmlBlaster 2.1.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||