Apache Tomcat 6.0.53

org.apache.catalina
Enum CometEvent.EventSubType

java.lang.Object
  extended by java.lang.Enum<CometEvent.EventSubType>
      extended by org.apache.catalina.CometEvent.EventSubType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CometEvent.EventSubType>
Enclosing interface:
CometEvent

public static enum CometEvent.EventSubType
extends java.lang.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)


Enum Constant Summary
CLIENT_DISCONNECT
           
IOEXCEPTION
           
SERVER_SHUTDOWN
           
SESSION_END
           
TIMEOUT
           
WEBAPP_RELOAD
           
 
Method Summary
static CometEvent.EventSubType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CometEvent.EventSubType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TIMEOUT

public static final CometEvent.EventSubType TIMEOUT

CLIENT_DISCONNECT

public static final CometEvent.EventSubType CLIENT_DISCONNECT

IOEXCEPTION

public static final CometEvent.EventSubType IOEXCEPTION

WEBAPP_RELOAD

public static final CometEvent.EventSubType WEBAPP_RELOAD

SERVER_SHUTDOWN

public static final CometEvent.EventSubType SERVER_SHUTDOWN

SESSION_END

public static final CometEvent.EventSubType SESSION_END
Method Detail

values

public static final CometEvent.EventSubType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(CometEvent.EventSubType c : CometEvent.EventSubType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static CometEvent.EventSubType 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 name

Apache Tomcat 6.0.53

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