org.apache.catalina
public final class InstanceEvent extends EventObject
Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $
Field Summary | |
---|---|
static String | AFTER_DESTROY_EVENT
The event indicating that the destroy() method has
returned. |
static String | AFTER_DISPATCH_EVENT
The event indicating that the service() method of a
servlet accessed via a request dispatcher has returned. |
static String | AFTER_FILTER_EVENT
The event indicating that the doFilter() method of a
Filter has returned. |
static String | AFTER_INIT_EVENT
The event indicating that the init() method has returned. |
static String | AFTER_SERVICE_EVENT
The event indicating that the service() method has
returned. |
static String | BEFORE_DESTROY_EVENT
The event indicating that the destroy method is about
to be called for this instance. |
static String | BEFORE_DISPATCH_EVENT
The event indicating that the service() method of a
servlet accessed via a request dispatcher is about to be called.
|
static String | BEFORE_FILTER_EVENT
The event indicating that the doFilter() method of a
Filter is about to be called. |
static String | BEFORE_INIT_EVENT
The event indicating that the init() method is about
to be called for this instance. |
static String | BEFORE_SERVICE_EVENT
The event indicating that the service() method is about
to be called on a servlet. |
Constructor Summary | |
---|---|
InstanceEvent(Wrapper wrapper, Filter filter, String type)
Construct a new InstanceEvent with the specified parameters. | |
InstanceEvent(Wrapper wrapper, Filter filter, String type, Throwable exception)
Construct a new InstanceEvent with the specified parameters. | |
InstanceEvent(Wrapper wrapper, Filter filter, String type, ServletRequest request, ServletResponse response)
Construct a new InstanceEvent with the specified parameters. | |
InstanceEvent(Wrapper wrapper, Filter filter, String type, ServletRequest request, ServletResponse response, Throwable exception)
Construct a new InstanceEvent with the specified parameters. | |
InstanceEvent(Wrapper wrapper, Servlet servlet, String type)
Construct a new InstanceEvent with the specified parameters. | |
InstanceEvent(Wrapper wrapper, Servlet servlet, String type, Throwable exception)
Construct a new InstanceEvent with the specified parameters. | |
InstanceEvent(Wrapper wrapper, Servlet servlet, String type, ServletRequest request, ServletResponse response)
Construct a new InstanceEvent with the specified parameters. | |
InstanceEvent(Wrapper wrapper, Servlet servlet, String type, ServletRequest request, ServletResponse response, Throwable exception)
Construct a new InstanceEvent with the specified parameters. |
Method Summary | |
---|---|
Throwable | getException()
Return the exception that occurred during the processing
that was reported by this event. |
Filter | getFilter()
Return the filter instance for which this event occurred. |
ServletRequest | getRequest()
Return the servlet request for which this event occurred. |
ServletResponse | getResponse()
Return the servlet response for which this event occurred. |
Servlet | getServlet()
Return the servlet instance for which this event occurred. |
String | getType()
Return the event type of this event. |
Wrapper | getWrapper()
Return the Wrapper managing the servlet instance for which this
event occurred. |
destroy()
method has
returned.service()
method of a
servlet accessed via a request dispatcher has returned. The
servlet
property contains a reference to the
dispatched-to servlet instance, and the request
and
response
properties contain the current request and
response being processed. The wrapper
property will
contain a reference to the dispatched-to Wrapper.doFilter()
method of a
Filter has returned. The filter
property contains
a reference to the relevant filter instance, and the
request
and response
properties contain
the current request and response being processed.init()
method has returned.service()
method has
returned. The servlet
property contains the servlet
that was called, and the request
and
response
properties contain the current request and
response being processed.destroy
method is about
to be called for this instance.service()
method of a
servlet accessed via a request dispatcher is about to be called.
The servlet
property contains a reference to the
dispatched-to servlet instance, and the request
and
response
properties contain the current request and
response being processed. The wrapper
property will
contain a reference to the dispatched-to Wrapper.doFilter()
method of a
Filter is about to be called. The filter
property
contains a reference to the relevant filter instance, and the
request
and response
properties contain
the current request and response being processed.init()
method is about
to be called for this instance.service()
method is about
to be called on a servlet. The servlet
property contains
the servlet being called, and the request
and
response
properties contain the current request and
response being processed.Parameters: wrapper Wrapper managing this servlet instance filter Filter instance for which this event occurred type Event type (required)
Parameters: wrapper Wrapper managing this servlet instance filter Filter instance for which this event occurred type Event type (required) exception Exception that occurred
Parameters: wrapper Wrapper managing this servlet instance filter Filter instance for which this event occurred type Event type (required) request Servlet request we are processing response Servlet response we are processing
Parameters: wrapper Wrapper managing this servlet instance filter Filter instance for which this event occurred type Event type (required) request Servlet request we are processing response Servlet response we are processing exception Exception that occurred
Parameters: wrapper Wrapper managing this servlet instance servlet Servlet instance for which this event occurred type Event type (required)
Parameters: wrapper Wrapper managing this servlet instance servlet Servlet instance for which this event occurred type Event type (required) exception Exception that occurred
Parameters: wrapper Wrapper managing this servlet instance servlet Servlet instance for which this event occurred type Event type (required) request Servlet request we are processing response Servlet response we are processing
Parameters: wrapper Wrapper managing this servlet instance servlet Servlet instance for which this event occurred type Event type (required) request Servlet request we are processing response Servlet response we are processing exception Exception that occurred