Class RequestInfo

java.lang.Object
org.apache.coyote.RequestInfo

public class RequestInfo extends Object
Structure 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 its own RequestProcessorMX ).
Author:
Costin Manolache
  • Constructor Details Link icon

    • RequestInfo Link icon

      public RequestInfo(Request req)
  • Method Details Link icon

    • getGlobalProcessor Link icon

      public RequestGroupInfo getGlobalProcessor()
    • setGlobalProcessor Link icon

      public void setGlobalProcessor(RequestGroupInfo global)
    • getMethod Link icon

      public String getMethod()
    • getCurrentUri Link icon

      public String getCurrentUri()
    • getCurrentQueryString Link icon

      public String getCurrentQueryString()
    • getProtocol Link icon

      public String getProtocol()
    • getVirtualHost Link icon

      public String getVirtualHost()
    • getServerPort Link icon

      public int getServerPort()
    • getRemoteAddr Link icon

      public String getRemoteAddr()
    • getPeerAddr Link icon

      public String getPeerAddr()
    • getRemoteAddrForwarded Link icon

      public String getRemoteAddrForwarded()
      Obtain the remote address for this connection as reported by an intermediate proxy (if any).
      Returns:
      The remote address for this connection
    • getContentLength Link icon

      public int getContentLength()
    • getRequestBytesReceived Link icon

      public long getRequestBytesReceived()
    • getRequestBytesSent Link icon

      public long getRequestBytesSent()
    • getRequestProcessingTime Link icon

      public long getRequestProcessingTime()
    • getStage Link icon

      public int getStage()
    • setStage Link icon

      public void setStage(int stage)
    • getBytesSent Link icon

      public long getBytesSent()
    • setBytesSent Link icon

      public void setBytesSent(long bytesSent)
    • getBytesReceived Link icon

      public long getBytesReceived()
    • setBytesReceived Link icon

      public void setBytesReceived(long bytesReceived)
    • getProcessingTime Link icon

      public long getProcessingTime()
    • setProcessingTime Link icon

      public void setProcessingTime(long processingTime)
    • getMaxTime Link icon

      public long getMaxTime()
    • setMaxTime Link icon

      public void setMaxTime(long maxTime)
    • getMaxRequestUri Link icon

      public String getMaxRequestUri()
    • setMaxRequestUri Link icon

      public void setMaxRequestUri(String maxRequestUri)
    • getRequestCount Link icon

      public int getRequestCount()
    • setRequestCount Link icon

      public void setRequestCount(int requestCount)
    • getErrorCount Link icon

      public int getErrorCount()
    • setErrorCount Link icon

      public void setErrorCount(int errorCount)
    • getWorkerThreadName Link icon

      public String getWorkerThreadName()
    • getRpName Link icon

      public ObjectName getRpName()
    • getLastRequestProcessingTime Link icon

      public long getLastRequestProcessingTime()
    • setWorkerThreadName Link icon

      public void setWorkerThreadName(String workerThreadName)
    • setRpName Link icon

      public void setRpName(ObjectName rpName)
    • setLastRequestProcessingTime Link icon

      public void setLastRequestProcessingTime(long lastRequestProcessingTime)