Class ProcessingState


  • public final class ProcessingState
    extends java.lang.Object
    Maintains semantic state necessary to proper HTTP processing.
    • Constructor Summary

      Constructors 
      Constructor Description
      ProcessingState()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      HttpContext getHttpContext()
      Returns HttpContext associated with the processing.
      boolean isError()
      This flag indicates whether error occurred during the HTTP processing.
      boolean isKeepAlive()
      This flag controls the connection keep-alive feature.
      boolean isStayAlive()
      Method returns true only if the connection is in keep-alive mode and there was no error occurred during the packet processing.
      void recycle()
      Resets values to their initial states.
      void setError​(boolean error)
      This flag indicates whether error occurred during the HTTP processing.
      void setHttpContext​(HttpContext httpContext)
      Sets the HttpContext associated with the processing.
      void setKeepAlive​(boolean keepAlive)
      This flag controls the connection keep-alive feature.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProcessingState

        public ProcessingState()
    • Method Detail

      • isError

        public boolean isError()

        This flag indicates whether error occurred during the HTTP processing.

        Returns:
        true, if error occurred during the HTTP processing, or false otherwise.
      • setError

        public void setError​(boolean error)

        This flag indicates whether error occurred during the HTTP processing.

        Parameters:
        error - true, if error occurred during the HTTP processing, or false otherwise.
      • isStayAlive

        public boolean isStayAlive()

        Method returns true only if the connection is in keep-alive mode and there was no error occurred during the packet processing.

        Returns:
        true only if the connection is in keep-alive mode and there was no error occurred during the packet processing.
      • isKeepAlive

        public boolean isKeepAlive()

        This flag controls the connection keep-alive feature.

        Returns:
        true if connection may work in keep-alive mode or false otherwise.
      • setKeepAlive

        public void setKeepAlive​(boolean keepAlive)

        This flag controls the connection keep-alive feature.

        Parameters:
        keepAlive - true if connection may work in keep-alive mode or false otherwise.
      • setHttpContext

        public void setHttpContext​(HttpContext httpContext)

        Sets the HttpContext associated with the processing.

        Parameters:
        httpContext - HttpContext.
      • recycle

        public void recycle()

        Resets values to their initial states.