winstone
Class RequestHandlerThread
java.lang.Object
winstone.RequestHandlerThread
- All Implemented Interfaces:
- java.lang.Runnable
public class RequestHandlerThread
- extends java.lang.Object
- implements java.lang.Runnable
The threads to which incoming requests get allocated.
- Version:
- $Id: RequestHandlerThread.java,v 1.21 2007/04/23 02:55:35 rickknowles Exp $
- Author:
- Rick Knowles
Constructor Summary |
RequestHandlerThread(boolean simulateModUniqueId,
boolean saveSessions,
java.net.Socket socket,
Listener listener)
Constructor - this is called by the handler pool, and just sets up for
when a real request comes along. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestHandlerThread
public RequestHandlerThread(boolean simulateModUniqueId,
boolean saveSessions,
java.net.Socket socket,
Listener listener)
- Constructor - this is called by the handler pool, and just sets up for
when a real request comes along.
run
public void run()
- The main thread execution code.
- Specified by:
run
in interface java.lang.Runnable
setRequest
public void setRequest(WinstoneRequest request)
setResponse
public void setResponse(WinstoneResponse response)
setInStream
public void setInStream(WinstoneInputStream inStream)
setOutStream
public void setOutStream(WinstoneOutputStream outStream)
setRequestStartTime
public void setRequestStartTime()
getRequestProcessTime
public long getRequestProcessTime()
writeToAccessLog
protected void writeToAccessLog(java.lang.String originalURL,
WinstoneRequest request,
WinstoneResponse response,
WebAppConfiguration webAppConfig)
Copyright © 2013. All Rights Reserved.