Top Description Fields Constructors Methods
org.glassfish.grizzly.http

public final Class ProcessingState

extends Object
Class Inheritance

Maintains semantic state necessary to proper HTTP processing.

Field Summary

Modifier and TypeField and Description
pack-priv boolean
error

Indicates if an error occurred during request/response processing.

pack-priv HttpContext
httpContext

References HttpContext associated with the processing.

pack-priv boolean
keepAlive

This flag controls the semantics of the Connection response header.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public HttpContext

Returns:

HttpContext associated with the processing.
getHttpContext
()

Returns HttpContext associated with the processing.

public boolean

Returns:

true, if error occurred during the HTTP processing, or false otherwise.
isError
()

This flag indicates whether error occurred during the HTTP processing.

public boolean

Returns:

true if connection may work in keep-alive mode or false otherwise.
isKeepAlive
()

This flag controls the connection keep-alive feature.

public boolean

Returns:

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

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

public void
recycle()

Resets values to their initial states.

public void
setError(boolean
true, if error occurred during the HTTP processing, or false otherwise.
error
)

This flag indicates whether error occurred during the HTTP processing.

public void
setHttpContext(final HttpContext httpContext)

Sets the HttpContext associated with the processing.

public void
setKeepAlive(boolean
true if connection may work in keep-alive mode or false otherwise.
keepAlive
)

This flag controls the connection keep-alive feature.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

errorback to summary
pack-priv boolean error

Indicates if an error occurred during request/response processing.

httpContextback to summary
pack-priv HttpContext httpContext

References HttpContext associated with the processing.

keepAliveback to summary
pack-priv boolean keepAlive

This flag controls the semantics of the Connection response header.

Constructor Detail

ProcessingStateback to summary
public ProcessingState()

Method Detail

getHttpContextback to summary
public HttpContext getHttpContext()

Returns HttpContext associated with the processing.

Returns:HttpContext

HttpContext associated with the processing.

isErrorback to summary
public boolean isError()

This flag indicates whether error occurred during the HTTP processing.

Returns:boolean

true, if error occurred during the HTTP processing, or false otherwise.

isKeepAliveback to summary
public boolean isKeepAlive()

This flag controls the connection keep-alive feature.

Returns:boolean

true if connection may work in keep-alive mode or false otherwise.

isStayAliveback to summary
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:boolean

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

recycleback to summary
public void recycle()

Resets values to their initial states.

setErrorback to summary
public void setError(boolean error)

This flag indicates whether error occurred during the HTTP processing.

Parameters
error:boolean

true, if error occurred during the HTTP processing, or false otherwise.

setHttpContextback to summary
public void setHttpContext(final HttpContext httpContext)

Sets the HttpContext associated with the processing.

Parameters
httpContext:HttpContext

HttpContext.

setKeepAliveback to summary
public void setKeepAlive(boolean keepAlive)

This flag controls the connection keep-alive feature.

Parameters
keepAlive:boolean

true if connection may work in keep-alive mode or false otherwise.