Package org.apache.coyote
Class RequestInfo
- java.lang.Object
- 
- org.apache.coyote.RequestInfo
 
- 
 public class RequestInfo extends java.lang.ObjectStructure holding the Request and Response objects. It also holds statistical information about request processing and provide management information about the requests being 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 ).- Author:
- Costin Manolache
 
- 
- 
Constructor SummaryConstructors Constructor Description RequestInfo(Request req)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetBytesReceived()longgetBytesSent()intgetContentLength()java.lang.StringgetCurrentQueryString()java.lang.StringgetCurrentUri()intgetErrorCount()RequestGroupInfogetGlobalProcessor()longgetLastRequestProcessingTime()java.lang.StringgetMaxRequestUri()longgetMaxTime()java.lang.StringgetMethod()java.lang.StringgetPeerAddr()longgetProcessingTime()java.lang.StringgetProtocol()java.lang.StringgetRemoteAddr()java.lang.StringgetRemoteAddrForwarded()Obtain the remote address for this connection as reported by an intermediate proxy (if any).longgetRequestBytesReceived()longgetRequestBytesSent()intgetRequestCount()longgetRequestProcessingTime()javax.management.ObjectNamegetRpName()intgetServerPort()intgetStage()java.lang.StringgetVirtualHost()java.lang.StringgetWorkerThreadName()voidsetBytesReceived(long bytesReceived)voidsetBytesSent(long bytesSent)voidsetErrorCount(int errorCount)voidsetGlobalProcessor(RequestGroupInfo global)voidsetLastRequestProcessingTime(long lastRequestProcessingTime)voidsetMaxRequestUri(java.lang.String maxRequestUri)voidsetMaxTime(long maxTime)voidsetProcessingTime(long processingTime)voidsetRequestCount(int requestCount)voidsetRpName(javax.management.ObjectName rpName)voidsetStage(int stage)voidsetWorkerThreadName(java.lang.String workerThreadName)
 
- 
- 
- 
Constructor Detail- 
RequestInfopublic RequestInfo(Request req) 
 
- 
 - 
Method Detail- 
getGlobalProcessorpublic RequestGroupInfo getGlobalProcessor() 
 - 
setGlobalProcessorpublic void setGlobalProcessor(RequestGroupInfo global) 
 - 
getMethodpublic java.lang.String getMethod() 
 - 
getCurrentUripublic java.lang.String getCurrentUri() 
 - 
getCurrentQueryStringpublic java.lang.String getCurrentQueryString() 
 - 
getProtocolpublic java.lang.String getProtocol() 
 - 
getVirtualHostpublic java.lang.String getVirtualHost() 
 - 
getServerPortpublic int getServerPort() 
 - 
getRemoteAddrpublic java.lang.String getRemoteAddr() 
 - 
getPeerAddrpublic java.lang.String getPeerAddr() 
 - 
getRemoteAddrForwardedpublic java.lang.String getRemoteAddrForwarded() Obtain the remote address for this connection as reported by an intermediate proxy (if any).- Returns:
- The remote address for the this connection
 
 - 
getContentLengthpublic int getContentLength() 
 - 
getRequestBytesReceivedpublic long getRequestBytesReceived() 
 - 
getRequestBytesSentpublic long getRequestBytesSent() 
 - 
getRequestProcessingTimepublic long getRequestProcessingTime() 
 - 
getStagepublic int getStage() 
 - 
setStagepublic void setStage(int stage) 
 - 
getBytesSentpublic long getBytesSent() 
 - 
setBytesSentpublic void setBytesSent(long bytesSent) 
 - 
getBytesReceivedpublic long getBytesReceived() 
 - 
setBytesReceivedpublic void setBytesReceived(long bytesReceived) 
 - 
getProcessingTimepublic long getProcessingTime() 
 - 
setProcessingTimepublic void setProcessingTime(long processingTime) 
 - 
getMaxTimepublic long getMaxTime() 
 - 
setMaxTimepublic void setMaxTime(long maxTime) 
 - 
getMaxRequestUripublic java.lang.String getMaxRequestUri() 
 - 
setMaxRequestUripublic void setMaxRequestUri(java.lang.String maxRequestUri) 
 - 
getRequestCountpublic int getRequestCount() 
 - 
setRequestCountpublic void setRequestCount(int requestCount) 
 - 
getErrorCountpublic int getErrorCount() 
 - 
setErrorCountpublic void setErrorCount(int errorCount) 
 - 
getWorkerThreadNamepublic java.lang.String getWorkerThreadName() 
 - 
getRpNamepublic javax.management.ObjectName getRpName() 
 - 
getLastRequestProcessingTimepublic long getLastRequestProcessingTime() 
 - 
setWorkerThreadNamepublic void setWorkerThreadName(java.lang.String workerThreadName) 
 - 
setRpNamepublic void setRpName(javax.management.ObjectName rpName) 
 - 
setLastRequestProcessingTimepublic void setLastRequestProcessingTime(long lastRequestProcessingTime) 
 
- 
 
-