org.apache.catalina

Class CometEvent.EventSubType

public static class CometEvent.EventSubType extends Enum<CometEvent.EventSubType>

Event details TIMEOUT - the connection timed out (sub type of ERROR); note that this ERROR type is not fatal, and the connection will not be closed unless the servlet uses the close method of the event CLIENT_DISCONNECT - the client connection was closed (sub type of ERROR) IOEXCEPTION - an IO exception occurred, such as invalid content, for example, an invalid chunk block (sub type of ERROR) WEBAPP_RELOAD - the webapplication is being reloaded (sub type of END) SERVER_SHUTDOWN - the server is shutting down (sub type of END) SESSION_END - the servlet ended the session (sub type of END)
Field Summary
static CometEvent.EventSubTypeCLIENT_DISCONNECT
static CometEvent.EventSubTypeIOEXCEPTION
static CometEvent.EventSubTypeSERVER_SHUTDOWN
static CometEvent.EventSubTypeSESSION_END
static CometEvent.EventSubTypeTIMEOUT
static List<CometEvent.EventSubType>VALUES
An immutable list containing the values comprising this enum class in the order they're declared.
static CometEvent.EventSubTypeWEBAPP_RELOAD
Method Summary
List<CometEvent.EventSubType>family()
Returns an immutable list containing the values comprising this enum class in the order they're declared.
static CometEvent.EventSubTypevalueOf(String name)
Static factory to return the enum constant pertaining to the given string name.

Field Detail

CLIENT_DISCONNECT

public static final CometEvent.EventSubType CLIENT_DISCONNECT

IOEXCEPTION

public static final CometEvent.EventSubType IOEXCEPTION

SERVER_SHUTDOWN

public static final CometEvent.EventSubType SERVER_SHUTDOWN

SESSION_END

public static final CometEvent.EventSubType SESSION_END

TIMEOUT

public static final CometEvent.EventSubType TIMEOUT

VALUES

public static final List<CometEvent.EventSubType> VALUES
An immutable list containing the values comprising this enum class in the order they're declared. This field may be used to iterate over the constants as follows:
for(EventSubType c : EventSubType.VALUES)
    System.out.println(c);

WEBAPP_RELOAD

public static final CometEvent.EventSubType WEBAPP_RELOAD

Method Detail

family

public final List<CometEvent.EventSubType> family()
Returns an immutable list containing the values comprising this enum class in the order they're declared. This instance method simply returns VALUES. Few programmers should have any need to use this method. It is provided for use by sophisticated enum-based data structures to prevent the need for reflective access to VALUES.

Returns: an immutable list containing the values comprising this enum class, in the order they're declared.

valueOf

public static final CometEvent.EventSubType valueOf(String name)
Static factory to return the enum constant pertaining to the given string name. The string must match exactly an identifier used to declare an enum constant in this type.

Throws: IllegalArgumentException if this enum class has no constant with the specified name.

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.