|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread org.w3c.www.protocol.http.cache.push.PushCacheHandler
public class PushCacheHandler
PushCacheHandler Created by PushCacheListener to handle a dialogue with a client
PushCacheProtocol
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 | |
---|---|
PushCacheHandler(PushCacheListener l,
java.net.Socket s)
Construct a PushCacheHandler |
Method Summary | |
---|---|
protected void |
add()
Handle "ADD" packet |
protected void |
clean()
Handle "CLN" packet |
protected void |
cleanup()
Close sockets, etc. |
protected void |
del()
Handle "DEL" packet |
protected void |
nop()
Handle "NOP" packet (reply OK) |
protected void |
present()
Handle "PRS" packet |
void |
printBuffer(byte[] buf,
int len)
Debugging aid, displays buffer to stderr |
protected void |
readPayload()
Read data based on the contents of the remain_len field |
protected void |
reply_error(java.lang.String message)
Send an "ERR" message back to client |
protected void |
reply_no()
Send a "NO" message back to client |
protected void |
reply_ok()
Send an "OK" message back to client |
void |
run()
Handle dialogue with client |
void |
stopRunning()
Request that Handler gracefully cease execution |
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 |
Constructor Detail |
---|
public PushCacheHandler(PushCacheListener l, java.net.Socket s) throws java.io.IOException
socket
- Socket through which Handler will communicate with client
java.io.IOException
Method Detail |
---|
protected void reply_ok() throws java.io.IOException
java.io.IOException
protected void reply_no() throws java.io.IOException
java.io.IOException
protected void reply_error(java.lang.String message)
public void stopRunning()
protected void cleanup()
public void printBuffer(byte[] buf, int len)
protected void readPayload() throws java.io.IOException
java.io.IOException
protected void add() throws java.io.IOException
java.io.IOException
protected void del() throws java.lang.Exception
java.lang.Exception
protected void clean() throws java.lang.Exception
java.lang.Exception
protected void present() throws java.lang.Exception
java.lang.Exception
protected void nop() throws java.lang.Exception
java.lang.Exception
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |