Package org.simpleframework.http.core
Enum ContainerEvent
- All Implemented Interfaces:
Serializable
,Comparable<ContainerEvent>
,java.lang.constant.Constable
The
ContainerEvent
enum represents events that occur when
processing a HTTP transaction. Here each phase of processing has a
single event to represent it. If a Trace
object has been
associated with the connection then the server will notify the trace
when the connection enters a specific phase of processing.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis indicates that the server has fully read the request body.This event indicates that the server sent a HTTP continue reply.This indicates that the dispatch thread has completed the dispatch.This indicates that the request has been dispatched for processing.This indicates that there was some error event with the request.This indicates that the server has fully read the request header.This event indicates that the server is reading the request body.This event indicates that the server is reading the request header.This event indicates that the request is ready for processing.This indicates that all the bytes within the response are sent.This event indicates that the server is writing the response body.This event indicates that the server is writing the response header. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerEvent
Returns the enum constant of this type with the specified name.static ContainerEvent[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
READ_HEADER
This event indicates that the server is reading the request header. -
READ_BODY
This event indicates that the server is reading the request body. -
WRITE_HEADER
This event indicates that the server is writing the response header. -
WRITE_BODY
This event indicates that the server is writing the response body. -
HEADER_FINISHED
This indicates that the server has fully read the request header. -
BODY_FINISHED
This indicates that the server has fully read the request body. -
DISPATCH_CONTINUE
This event indicates that the server sent a HTTP continue reply. -
REQUEST_READY
This event indicates that the request is ready for processing. -
DISPATCH_REQUEST
This indicates that the request has been dispatched for processing. -
DISPATCH_FINISHED
This indicates that the dispatch thread has completed the dispatch. -
RESPONSE_FINISHED
This indicates that all the bytes within the response are sent. -
ERROR
This indicates that there was some error event with the request.
-
-
Constructor Details
-
ContainerEvent
private ContainerEvent()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-