Enum ContainerEvent

java.lang.Object
java.lang.Enum<ContainerEvent>
org.simpleframework.http.core.ContainerEvent
All Implemented Interfaces:
Serializable, Comparable<ContainerEvent>, java.lang.constant.Constable

public enum ContainerEvent extends Enum<ContainerEvent>
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:
  • Enum Constant Details

    • 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.
  • Constructor Details

    • ContainerEvent

      private ContainerEvent()
  • Method Details

    • values

      public static ContainerEvent[] 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

      public static ContainerEvent valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null