| java.lang.Object java.util.EventObject org.apache.catalina.InstanceEvent
InstanceEvent | final public class InstanceEvent extends EventObject (Code) | | General event for notifying listeners of significant events related to
a specific instance of a Servlet, or a specific instance of a Filter,
as opposed to the Wrapper component that manages it.
author: Craig R. McClanahan version: $Revision: 1.7 $ $Date: 2001/10/11 23:30:58 $ |
Field Summary | |
final public static String | AFTER_DESTROY_EVENT The event indicating that the destroy() method has
returned. | final public static String | AFTER_DISPATCH_EVENT The event indicating that the service() method of a
servlet accessed via a request dispatcher has returned. | final public static String | AFTER_FILTER_EVENT The event indicating that the doFilter() method of a
Filter has returned. | final public static String | AFTER_INIT_EVENT The event indicating that the init() method has returned. | final public static String | AFTER_SERVICE_EVENT The event indicating that the service() method has
returned. | final public static String | BEFORE_DESTROY_EVENT The event indicating that the destroy method is about
to be called for this instance. | final public 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.
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. | final public static String | BEFORE_FILTER_EVENT The event indicating that the doFilter() method of a
Filter is about to be called. | final public static String | BEFORE_INIT_EVENT The event indicating that the init() method is about
to be called for this instance. | final public static String | BEFORE_SERVICE_EVENT The event indicating that the service() method is about
to be called on a servlet. |
Constructor Summary | |
public | InstanceEvent(Wrapper wrapper, Filter filter, String type) Construct a new InstanceEvent with the specified parameters. | public | InstanceEvent(Wrapper wrapper, Filter filter, String type, Throwable exception) Construct a new InstanceEvent with the specified parameters. | public | InstanceEvent(Wrapper wrapper, Filter filter, String type, ServletRequest request, ServletResponse response) Construct a new InstanceEvent with the specified parameters. | public | InstanceEvent(Wrapper wrapper, Filter filter, String type, ServletRequest request, ServletResponse response, Throwable exception) Construct a new InstanceEvent with the specified parameters. | public | InstanceEvent(Wrapper wrapper, Servlet servlet, String type) Construct a new InstanceEvent with the specified parameters. | public | InstanceEvent(Wrapper wrapper, Servlet servlet, String type, Throwable exception) Construct a new InstanceEvent with the specified parameters. | public | InstanceEvent(Wrapper wrapper, Servlet servlet, String type, ServletRequest request, ServletResponse response) Construct a new InstanceEvent with the specified parameters. | public | InstanceEvent(Wrapper wrapper, Servlet servlet, String type, ServletRequest request, ServletResponse response, Throwable exception) Construct a new InstanceEvent with the specified parameters. |
AFTER_DESTROY_EVENT | final public static String AFTER_DESTROY_EVENT(Code) | | The event indicating that the destroy() method has
returned.
|
AFTER_DISPATCH_EVENT | final public static String AFTER_DISPATCH_EVENT(Code) | | The event indicating that the 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.
|
AFTER_FILTER_EVENT | final public static String AFTER_FILTER_EVENT(Code) | | The event indicating that the 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.
|
AFTER_INIT_EVENT | final public static String AFTER_INIT_EVENT(Code) | | The event indicating that the init() method has returned.
|
AFTER_SERVICE_EVENT | final public static String AFTER_SERVICE_EVENT(Code) | | The event indicating that the 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.
|
BEFORE_DESTROY_EVENT | final public static String BEFORE_DESTROY_EVENT(Code) | | The event indicating that the destroy method is about
to be called for this instance.
|
BEFORE_DISPATCH_EVENT | final public static String BEFORE_DISPATCH_EVENT(Code) | | The event indicating that the 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.
|
BEFORE_FILTER_EVENT | final public static String BEFORE_FILTER_EVENT(Code) | | The event indicating that the 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.
|
BEFORE_INIT_EVENT | final public static String BEFORE_INIT_EVENT(Code) | | The event indicating that the init() method is about
to be called for this instance.
|
BEFORE_SERVICE_EVENT | final public static String BEFORE_SERVICE_EVENT(Code) | | The event indicating that the 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.
|
InstanceEvent | public InstanceEvent(Wrapper wrapper, Filter filter, String type)(Code) | | Construct a new InstanceEvent with the specified parameters. This
constructor is used for filter lifecycle events.
Parameters: wrapper - Wrapper managing this servlet instance Parameters: filter - Filter instance for which this event occurred Parameters: type - Event type (required) |
InstanceEvent | public InstanceEvent(Wrapper wrapper, Filter filter, String type, Throwable exception)(Code) | | Construct a new InstanceEvent with the specified parameters. This
constructor is used for filter lifecycle events.
Parameters: wrapper - Wrapper managing this servlet instance Parameters: filter - Filter instance for which this event occurred Parameters: type - Event type (required) Parameters: exception - Exception that occurred |
InstanceEvent | public InstanceEvent(Wrapper wrapper, Filter filter, String type, ServletRequest request, ServletResponse response)(Code) | | Construct a new InstanceEvent with the specified parameters. This
constructor is used for filter processing events.
Parameters: wrapper - Wrapper managing this servlet instance Parameters: filter - Filter instance for which this event occurred Parameters: type - Event type (required) Parameters: request - Servlet request we are processing Parameters: response - Servlet response we are processing |
InstanceEvent | public InstanceEvent(Wrapper wrapper, Filter filter, String type, ServletRequest request, ServletResponse response, Throwable exception)(Code) | | Construct a new InstanceEvent with the specified parameters. This
constructor is used for filter processing events.
Parameters: wrapper - Wrapper managing this servlet instance Parameters: filter - Filter instance for which this event occurred Parameters: type - Event type (required) Parameters: request - Servlet request we are processing Parameters: response - Servlet response we are processing Parameters: exception - Exception that occurred |
InstanceEvent | public InstanceEvent(Wrapper wrapper, Servlet servlet, String type)(Code) | | Construct a new InstanceEvent with the specified parameters. This
constructor is used for processing servlet lifecycle events.
Parameters: wrapper - Wrapper managing this servlet instance Parameters: servlet - Servlet instance for which this event occurred Parameters: type - Event type (required) |
InstanceEvent | public InstanceEvent(Wrapper wrapper, Servlet servlet, String type, Throwable exception)(Code) | | Construct a new InstanceEvent with the specified parameters. This
constructor is used for processing servlet lifecycle events.
Parameters: wrapper - Wrapper managing this servlet instance Parameters: servlet - Servlet instance for which this event occurred Parameters: type - Event type (required) Parameters: exception - Exception that occurred |
InstanceEvent | public InstanceEvent(Wrapper wrapper, Servlet servlet, String type, ServletRequest request, ServletResponse response)(Code) | | Construct a new InstanceEvent with the specified parameters. This
constructor is used for processing servlet processing events.
Parameters: wrapper - Wrapper managing this servlet instance Parameters: servlet - Servlet instance for which this event occurred Parameters: type - Event type (required) Parameters: request - Servlet request we are processing Parameters: response - Servlet response we are processing |
InstanceEvent | public InstanceEvent(Wrapper wrapper, Servlet servlet, String type, ServletRequest request, ServletResponse response, Throwable exception)(Code) | | Construct a new InstanceEvent with the specified parameters. This
constructor is used for processing servlet processing events.
Parameters: wrapper - Wrapper managing this servlet instance Parameters: servlet - Servlet instance for which this event occurred Parameters: type - Event type (required) Parameters: request - Servlet request we are processing Parameters: response - Servlet response we are processing Parameters: exception - Exception that occurred |
getException | public Throwable getException()(Code) | | Return the exception that occurred during the processing
that was reported by this event.
|
getFilter | public Filter getFilter()(Code) | | Return the filter instance for which this event occurred.
|
getRequest | public ServletRequest getRequest()(Code) | | Return the servlet request for which this event occurred.
|
getResponse | public ServletResponse getResponse()(Code) | | Return the servlet response for which this event occurred.
|
getServlet | public Servlet getServlet()(Code) | | Return the servlet instance for which this event occurred.
|
getType | public String getType()(Code) | | Return the event type of this event.
|
getWrapper | public Wrapper getWrapper()(Code) | | Return the Wrapper managing the servlet instance for which this
event occurred.
|
|
|