|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwinstone.RequestHandlerThread
public class RequestHandlerThread
The threads to which incoming requests get allocated.
Constructor Summary | |
---|---|
RequestHandlerThread(ObjectPool objectPool,
int threadIndex,
boolean simulateModUniqueId,
boolean saveSessions)
Constructor - this is called by the handler pool, and just sets up for when a real request comes along. |
Method Summary | |
---|---|
void |
commenceRequestHandling(java.net.Socket socket,
Listener listener)
Assign a socket to the handler |
void |
destroy()
Trigger the thread destruction for this handler |
long |
getRequestProcessTime()
|
void |
run()
The main thread execution code. |
void |
setInStream(WinstoneInputStream inStream)
|
void |
setOutStream(WinstoneOutputStream outStream)
|
void |
setRequest(WinstoneRequest request)
|
void |
setRequestStartTime()
|
void |
setResponse(WinstoneResponse response)
|
protected void |
writeToAccessLog(java.lang.String originalURL,
WinstoneRequest request,
WinstoneResponse response,
WebAppConfiguration webAppConfig)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestHandlerThread(ObjectPool objectPool, int threadIndex, boolean simulateModUniqueId, boolean saveSessions)
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
public void commenceRequestHandling(java.net.Socket socket, Listener listener)
public void setRequest(WinstoneRequest request)
public void setResponse(WinstoneResponse response)
public void setInStream(WinstoneInputStream inStream)
public void setOutStream(WinstoneOutputStream outStream)
public void setRequestStartTime()
public long getRequestProcessTime()
public void destroy()
protected void writeToAccessLog(java.lang.String originalURL, WinstoneRequest request, WinstoneResponse response, WebAppConfiguration webAppConfig)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |