java.lang.Object
org.glassfish.grizzly.http.ProcessingState
Maintains semantic state necessary to proper HTTP processing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturnsHttpContextassociated with the processing.booleanisError()This flag indicates whether error occurred during the HTTP processing.booleanThis flag controls the connection keep-alive feature.booleanMethod returns true only if the connection is in keep-alive mode and there was no error occurred during the packet processing.voidrecycle()Resets values to their initial states.voidsetError(boolean error) This flag indicates whether error occurred during the HTTP processing.voidsetHttpContext(HttpContext httpContext) Sets theHttpContextassociated with the processing.voidsetKeepAlive(boolean keepAlive) This flag controls the connection keep-alive feature.
-
Constructor Details
-
ProcessingState
public ProcessingState()
-
-
Method Details
-
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.
-
getHttpContext
Returns
HttpContextassociated with the processing.- Returns:
HttpContextassociated with the processing.
-
setHttpContext
Sets the
HttpContextassociated with the processing.- Parameters:
httpContext-HttpContext.
-
recycle
public void recycle()Resets values to their initial states.
-