|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--org.w3c.www.protocol.http.cache.push.PushCacheHandler
PushCacheHandler Created by PushCacheListener to handle a dialogue with a client
PushCacheProtocol
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,
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 |
Constructor Detail |
public PushCacheHandler(PushCacheListener l, java.net.Socket s) throws java.io.IOException
socket
- Socket through which Handler will communicate with clientMethod Detail |
protected void reply_ok() throws java.io.IOException
protected void reply_no() throws 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
protected void add() throws java.io.IOException
protected void del() throws java.lang.Exception
protected void clean() throws java.lang.Exception
protected void present() throws java.lang.Exception
protected void nop() throws java.lang.Exception
public void run()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |