|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.jigsaw.http.Client org.w3c.jigsaw.http.mux.MuxClient
public class MuxClient
Field Summary | |
---|---|
protected java.lang.Thread |
thread
The thread powering that client connection. |
Fields inherited from class org.w3c.jigsaw.http.Client |
---|
buffer, cont, currentURI, debug, identifier, prev_body_count, reqcount, server |
Method Summary | |
---|---|
protected void |
bind(MuxSession session)
Bind that client to the given connection. |
java.net.InetAddress |
getInetAddress()
Client implementation - Get the IP address of this client. |
protected java.lang.Thread |
getThread()
Get the thread powering that client. |
protected boolean |
idleConnection()
Client implementation - The current connection is now idle. |
void |
run()
Run HTTP on the newly created mux session. |
protected void |
stopConnection()
Client implementation - The current connection was terminated. |
protected boolean |
tryKeepConnection(Request request,
Reply reply)
Request has been processed into Reply, should we keep connection alive ? Test wether we can keep the connection alive, after the given reply has been emited. |
protected void |
usedConnection()
Client implementation - The current connection is now in use. |
Methods inherited from class org.w3c.jigsaw.http.Client |
---|
chunkTransfer, emitReply, error, getIdentifier, getInputStream, getMajorVersion, getMinorVersion, getNextRequest, getOutputStream, getRequestCount, getServer, handleTimerEvent, initialize, interruptConnection, isInterrupted, isRunning, log, processRequest, sendContinue, sendContinue, startConnection, trace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.Thread thread
Method Detail |
---|
protected boolean tryKeepConnection(Request request, Reply reply)
Client
tryKeepConnection
in class Client
request
- The request to examine.reply
- Its computed reply.public java.net.InetAddress getInetAddress()
getInetAddress
in class Client
public void run()
run
in interface java.lang.Runnable
protected boolean idleConnection()
idleConnection
in class Client
protected void usedConnection()
usedConnection
in class Client
protected void stopConnection()
stopConnection
in class Client
protected void bind(MuxSession session) throws java.io.IOException
session
- The mux session to handle.
java.io.IOException
protected java.lang.Thread getThread()
getThread
in class Client
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |