Package org.apache.catalina
Enum InstanceEvent.EventType
- java.lang.Object
-
- java.lang.Enum<InstanceEvent.EventType>
-
- org.apache.catalina.InstanceEvent.EventType
-
- All Implemented Interfaces:
Serializable
,Comparable<InstanceEvent.EventType>
- Enclosing class:
- InstanceEvent
public static enum InstanceEvent.EventType extends Enum<InstanceEvent.EventType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AFTER_DESTROY_EVENT
The event indicating that thedestroy()
method has returned.AFTER_DISPATCH_EVENT
The event indicating that theservice()
method of a servlet accessed via a request dispatcher has returned.AFTER_FILTER_EVENT
The event indicating that thedoFilter()
method of a Filter has returned.AFTER_INIT_EVENT
The event indicating that theinit()
method has returned.AFTER_SERVICE_EVENT
The event indicating that theservice()
method has returned.BEFORE_DESTROY_EVENT
The event indicating that thedestroy
method is about to be called for this instance.BEFORE_DISPATCH_EVENT
The event indicating that theservice()
method of a servlet accessed via a request dispatcher is about to be called.BEFORE_FILTER_EVENT
The event indicating that thedoFilter()
method of a Filter is about to be called.BEFORE_INIT_EVENT
The event indicating that theinit()
method is about to be called for this instance.BEFORE_SERVICE_EVENT
The event indicating that theservice()
method is about to be called on a servlet.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InstanceEvent.EventType
valueOf(String name)
Returns the enum constant of this type with the specified name.static InstanceEvent.EventType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BEFORE_INIT_EVENT
public static final InstanceEvent.EventType BEFORE_INIT_EVENT
The event indicating that theinit()
method is about to be called for this instance.
-
AFTER_INIT_EVENT
public static final InstanceEvent.EventType AFTER_INIT_EVENT
The event indicating that theinit()
method has returned.
-
BEFORE_SERVICE_EVENT
public static final InstanceEvent.EventType BEFORE_SERVICE_EVENT
The event indicating that theservice()
method is about to be called on a servlet. Theservlet
property contains the servlet being called, and therequest
andresponse
properties contain the current request and response being processed.
-
AFTER_SERVICE_EVENT
public static final InstanceEvent.EventType AFTER_SERVICE_EVENT
The event indicating that theservice()
method has returned. Theservlet
property contains the servlet that was called, and therequest
andresponse
properties contain the current request and response being processed.
-
BEFORE_DESTROY_EVENT
public static final InstanceEvent.EventType BEFORE_DESTROY_EVENT
The event indicating that thedestroy
method is about to be called for this instance.
-
AFTER_DESTROY_EVENT
public static final InstanceEvent.EventType AFTER_DESTROY_EVENT
The event indicating that thedestroy()
method has returned.
-
BEFORE_DISPATCH_EVENT
public static final InstanceEvent.EventType BEFORE_DISPATCH_EVENT
The event indicating that theservice()
method of a servlet accessed via a request dispatcher is about to be called. Theservlet
property contains a reference to the dispatched-to servlet instance, and therequest
andresponse
properties contain the current request and response being processed. Thewrapper
property will contain a reference to the dispatched-to Wrapper.
-
AFTER_DISPATCH_EVENT
public static final InstanceEvent.EventType AFTER_DISPATCH_EVENT
The event indicating that theservice()
method of a servlet accessed via a request dispatcher has returned. Theservlet
property contains a reference to the dispatched-to servlet instance, and therequest
andresponse
properties contain the current request and response being processed. Thewrapper
property will contain a reference to the dispatched-to Wrapper.
-
BEFORE_FILTER_EVENT
public static final InstanceEvent.EventType BEFORE_FILTER_EVENT
The event indicating that thedoFilter()
method of a Filter is about to be called. Thefilter
property contains a reference to the relevant filter instance, and therequest
andresponse
properties contain the current request and response being processed.
-
AFTER_FILTER_EVENT
public static final InstanceEvent.EventType AFTER_FILTER_EVENT
The event indicating that thedoFilter()
method of a Filter has returned. Thefilter
property contains a reference to the relevant filter instance, and therequest
andresponse
properties contain the current request and response being processed.
-
-
Field Detail
-
value
public final String value
-
isBefore
public final boolean isBefore
-
-
Method Detail
-
values
public static InstanceEvent.EventType[] 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 (InstanceEvent.EventType c : InstanceEvent.EventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InstanceEvent.EventType 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 nameNullPointerException
- if the argument is null
-
-