Package org.simpleframework.http.core
Enum ContainerEvent
- java.lang.Object
-
- java.lang.Enum<ContainerEvent>
-
- org.simpleframework.http.core.ContainerEvent
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ContainerEvent>
public enum ContainerEvent extends java.lang.Enum<ContainerEvent>
TheContainerEvent
enum represents events that occur when processing a HTTP transaction. Here each phase of processing has a single event to represent it. If aTrace
object has been associated with the connection then the server will notify the trace when the connection enters a specific phase of processing.- Author:
- Niall Gallagher
- See Also:
Trace
-
-
Enum Constant Summary
Enum Constants Enum Constant Description 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.DISPATCH_FINISHED
This indicates that the dispatch thread has completed the dispatch.DISPATCH_REQUEST
This indicates that the request has been dispatched for processing.ERROR
This indicates that there was some error event with the request.HEADER_FINISHED
This indicates that the server has fully read the request header.READ_BODY
This event indicates that the server is reading the request body.READ_HEADER
This event indicates that the server is reading the request header.REQUEST_READY
This event indicates that the request is ready for processing.RESPONSE_FINISHED
This indicates that all the bytes within the response are sent.WRITE_BODY
This event indicates that the server is writing the response body.WRITE_HEADER
This event indicates that the server is writing the response header.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ContainerEvent
valueOf(java.lang.String name)
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 Detail
-
READ_HEADER
public static final ContainerEvent READ_HEADER
This event indicates that the server is reading the request header.
-
READ_BODY
public static final ContainerEvent READ_BODY
This event indicates that the server is reading the request body.
-
WRITE_HEADER
public static final ContainerEvent WRITE_HEADER
This event indicates that the server is writing the response header.
-
WRITE_BODY
public static final ContainerEvent WRITE_BODY
This event indicates that the server is writing the response body.
-
HEADER_FINISHED
public static final ContainerEvent HEADER_FINISHED
This indicates that the server has fully read the request header.
-
BODY_FINISHED
public static final ContainerEvent BODY_FINISHED
This indicates that the server has fully read the request body.
-
DISPATCH_CONTINUE
public static final ContainerEvent DISPATCH_CONTINUE
This event indicates that the server sent a HTTP continue reply.
-
REQUEST_READY
public static final ContainerEvent REQUEST_READY
This event indicates that the request is ready for processing.
-
DISPATCH_REQUEST
public static final ContainerEvent DISPATCH_REQUEST
This indicates that the request has been dispatched for processing.
-
DISPATCH_FINISHED
public static final ContainerEvent DISPATCH_FINISHED
This indicates that the dispatch thread has completed the dispatch.
-
RESPONSE_FINISHED
public static final ContainerEvent RESPONSE_FINISHED
This indicates that all the bytes within the response are sent.
-
ERROR
public static final ContainerEvent ERROR
This indicates that there was some error event with the request.
-
-
Method Detail
-
values
public static ContainerEvent[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ContainerEvent c : ContainerEvent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContainerEvent valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-