org.apache.coyote
Class RequestInfo

java.lang.Object
  |
  +--org.apache.coyote.RequestInfo

public class RequestInfo
extends java.lang.Object

Structure holding the Request and Response objects. It also holds statistical informations about request processing and provide management informations about the requests beeing processed. Each thread uses a Request/Response pair that is recycled on each request. This object provides a place to collect global low-level statistics - without having to deal with synchronization ( since each thread will have it's own RequestProcessorMX ). TODO: Request notifications will be registered here.

Author:
Costin Manolache

Field Summary
private  long bytesReceived
           
private  long bytesSent
           
private  int errorCount
           
(package private)  RequestGroupInfo global
           
private  java.lang.String maxRequestUri
           
private  long maxTime
           
private  long processingTime
           
(package private)  Request req
           
private  int requestCount
           
(package private)  Response res
           
 
Constructor Summary
RequestInfo(Request req)
           
 
Method Summary
 long getBytesReceived()
           
 long getBytesSent()
           
 int getContentLength()
           
 java.lang.String getCurrentQueryString()
           
 java.lang.String getCurrentUri()
           
 int getErrorCount()
           
 java.lang.String getMaxRequestUri()
           
 long getMaxTime()
           
 long getProcessingTime()
           
 java.lang.String getProtocol()
           
 java.lang.String getRemoteAddr()
           
 int getRequestCount()
           
 int getServerPort()
           
 java.lang.String getVirtualHost()
           
 void setBytesReceived(long bytesReceived)
           
 void setBytesSent(long bytesSent)
           
 void setErrorCount(int errorCount)
           
 void setGlobalProcessor(RequestGroupInfo global)
           
 void setMaxRequestUri(java.lang.String maxRequestUri)
           
 void setMaxTime(long maxTime)
           
 void setProcessingTime(long processingTime)
           
 void setRequestCount(int requestCount)
           
(package private)  void updateCounters()
          Called by the processor before recycling the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

global

RequestGroupInfo global

req

Request req

res

Response res

bytesSent

private long bytesSent

bytesReceived

private long bytesReceived

processingTime

private long processingTime

maxTime

private long maxTime

maxRequestUri

private java.lang.String maxRequestUri

requestCount

private int requestCount

errorCount

private int errorCount
Constructor Detail

RequestInfo

public RequestInfo(Request req)
Method Detail

setGlobalProcessor

public void setGlobalProcessor(RequestGroupInfo global)

getCurrentUri

public java.lang.String getCurrentUri()

getCurrentQueryString

public java.lang.String getCurrentQueryString()

getProtocol

public java.lang.String getProtocol()

getVirtualHost

public java.lang.String getVirtualHost()

getServerPort

public int getServerPort()

getRemoteAddr

public java.lang.String getRemoteAddr()

getContentLength

public int getContentLength()

updateCounters

void updateCounters()
Called by the processor before recycling the request. It'll collect statistic information.


getBytesSent

public long getBytesSent()

setBytesSent

public void setBytesSent(long bytesSent)

getBytesReceived

public long getBytesReceived()

setBytesReceived

public void setBytesReceived(long bytesReceived)

getProcessingTime

public long getProcessingTime()

setProcessingTime

public void setProcessingTime(long processingTime)

getMaxTime

public long getMaxTime()

setMaxTime

public void setMaxTime(long maxTime)

getMaxRequestUri

public java.lang.String getMaxRequestUri()

setMaxRequestUri

public void setMaxRequestUri(java.lang.String maxRequestUri)

getRequestCount

public int getRequestCount()

setRequestCount

public void setRequestCount(int requestCount)

getErrorCount

public int getErrorCount()

setErrorCount

public void setErrorCount(int errorCount)


Copyright (c) 2001 - Apache Software Foundation