Class RequestProcessor


  • public class RequestProcessor
    extends Object
    POJO representing a single http request processor thread.
    • Field Detail

      • name

        private String name
        The name.
      • stage

        private int stage
        The stage.
      • processingTime

        private long processingTime
        The processing time.
      • bytesSent

        private long bytesSent
        The bytes sent.
      • bytesReceived

        private long bytesReceived
        The bytes received.
      • remoteAddr

        private String remoteAddr
        The remote addr.
      • remoteAddrLocale

        private Locale remoteAddrLocale
        The remote addr locale.
      • virtualHost

        private String virtualHost
        The virtual host.
      • method

        private String method
        The method.
      • currentUri

        private String currentUri
        The current uri.
      • currentQueryString

        private String currentQueryString
        The current query string.
      • protocol

        private String protocol
        The protocol.
      • workerThreadName

        private String workerThreadName
        The worker thread name.
      • workerThreadNameSupported

        private boolean workerThreadNameSupported
        The worker thread name supported.
    • Constructor Detail

      • RequestProcessor

        public RequestProcessor()
    • Method Detail

      • getName

        public String getName()
        Gets the name.
        Returns:
        the name
      • setName

        public void setName​(String name)
        Sets the name.
        Parameters:
        name - the new name
      • getStage

        public int getStage()
        Gets the stage.
        Returns:
        the stage
      • setStage

        public void setStage​(int stage)
        Sets the stage.
        Parameters:
        stage - the new stage
      • getProcessingTime

        public long getProcessingTime()
        Gets the processing time.
        Returns:
        the processing time
      • setProcessingTime

        public void setProcessingTime​(long processingTime)
        Sets the processing time.
        Parameters:
        processingTime - the new processing time
      • getBytesSent

        public long getBytesSent()
        Gets the bytes sent.
        Returns:
        the bytes sent
      • setBytesSent

        public void setBytesSent​(long bytesSent)
        Sets the bytes sent.
        Parameters:
        bytesSent - the new bytes sent
      • getBytesReceived

        public long getBytesReceived()
        Gets the bytes received.
        Returns:
        the bytes received
      • setBytesReceived

        public void setBytesReceived​(long bytesReceived)
        Sets the bytes received.
        Parameters:
        bytesReceived - the new bytes received
      • getRemoteAddr

        public String getRemoteAddr()
        Gets the remote addr.
        Returns:
        the remote addr
      • setRemoteAddr

        public void setRemoteAddr​(String remoteAddr)
        Sets the remote addr.
        Parameters:
        remoteAddr - the new remote addr
      • getVirtualHost

        public String getVirtualHost()
        Gets the virtual host.
        Returns:
        the virtual host
      • setVirtualHost

        public void setVirtualHost​(String virtualHost)
        Sets the virtual host.
        Parameters:
        virtualHost - the new virtual host
      • getMethod

        public String getMethod()
        Gets the method.
        Returns:
        the method
      • setMethod

        public void setMethod​(String method)
        Sets the method.
        Parameters:
        method - the new method
      • getCurrentUri

        public String getCurrentUri()
        Gets the current uri.
        Returns:
        the current uri
      • setCurrentUri

        public void setCurrentUri​(String currentUri)
        Sets the current uri.
        Parameters:
        currentUri - the new current uri
      • getCurrentQueryString

        public String getCurrentQueryString()
        Gets the current query string.
        Returns:
        the current query string
      • setCurrentQueryString

        public void setCurrentQueryString​(String currentQueryString)
        Sets the current query string.
        Parameters:
        currentQueryString - the new current query string
      • getProtocol

        public String getProtocol()
        Gets the protocol.
        Returns:
        the protocol
      • setProtocol

        public void setProtocol​(String protocol)
        Sets the protocol.
        Parameters:
        protocol - the new protocol
      • getRemoteAddrLocale

        public Locale getRemoteAddrLocale()
        Gets the remote addr locale.
        Returns:
        the remote addr locale
      • setRemoteAddrLocale

        public void setRemoteAddrLocale​(Locale remoteAddrLocale)
        Sets the remote addr locale.
        Parameters:
        remoteAddrLocale - the new remote addr locale
      • getWorkerThreadName

        public String getWorkerThreadName()
        Gets the worker thread name.
        Returns:
        the worker thread name
      • setWorkerThreadName

        public void setWorkerThreadName​(String workerThreadName)
        Sets the worker thread name.
        Parameters:
        workerThreadName - the new worker thread name
      • isWorkerThreadNameSupported

        public boolean isWorkerThreadNameSupported()
        Checks if is worker thread name supported.
        Returns:
        true, if is worker thread name supported
      • setWorkerThreadNameSupported

        public void setWorkerThreadNameSupported​(boolean workerThreadNameSupported)
        Sets the worker thread name supported.
        Parameters:
        workerThreadNameSupported - the new worker thread name supported