Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » catalina » [javadoc | source]
org.apache.catalina
public final class: InstanceEvent [javadoc | source]
java.lang.Object
   java.util.EventObject
      org.apache.catalina.InstanceEvent

All Implemented Interfaces:
    Serializable

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.
Field Summary
public static final  String BEFORE_INIT_EVENT    The event indicating that the init() method is about to be called for this instance. 
public static final  String AFTER_INIT_EVENT    The event indicating that the init() method has returned. 
public static final  String BEFORE_SERVICE_EVENT    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. 
public static final  String AFTER_SERVICE_EVENT    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. 
public static final  String BEFORE_DESTROY_EVENT    The event indicating that the destroy method is about to be called for this instance. 
public static final  String AFTER_DESTROY_EVENT    The event indicating that the destroy() method has returned. 
public static final  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. The wrapper property will contain a reference to the dispatched-to Wrapper. 
public static final  String AFTER_DISPATCH_EVENT    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. 
public static final  String BEFORE_FILTER_EVENT    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. 
public static final  String AFTER_FILTER_EVENT    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. 
Constructor:
 public InstanceEvent(Wrapper wrapper,
    Filter filter,
    String type) 
    Construct a new InstanceEvent with the specified parameters. This constructor is used for filter lifecycle events.
    Parameters:
    wrapper - Wrapper managing this servlet instance
    filter - Filter instance for which this event occurred
    type - Event type (required)
 public InstanceEvent(Wrapper wrapper,
    Servlet servlet,
    String type) 
    Construct a new InstanceEvent with the specified parameters. This constructor is used for processing servlet lifecycle events.
    Parameters:
    wrapper - Wrapper managing this servlet instance
    servlet - Servlet instance for which this event occurred
    type - Event type (required)
 public InstanceEvent(Wrapper wrapper,
    Filter filter,
    String type,
    Throwable exception) 
    Construct a new InstanceEvent with the specified parameters. This constructor is used for filter lifecycle events.
    Parameters:
    wrapper - Wrapper managing this servlet instance
    filter - Filter instance for which this event occurred
    type - Event type (required)
    exception - Exception that occurred
 public InstanceEvent(Wrapper wrapper,
    Servlet servlet,
    String type,
    Throwable exception) 
    Construct a new InstanceEvent with the specified parameters. This constructor is used for processing servlet lifecycle events.
    Parameters:
    wrapper - Wrapper managing this servlet instance
    servlet - Servlet instance for which this event occurred
    type - Event type (required)
    exception - Exception that occurred
 public InstanceEvent(Wrapper wrapper,
    Filter filter,
    String type,
    ServletRequest request,
    ServletResponse response) 
    Construct a new InstanceEvent with the specified parameters. This constructor is used for filter processing events.
    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
 public InstanceEvent(Wrapper wrapper,
    Servlet servlet,
    String type,
    ServletRequest request,
    ServletResponse response) 
    Construct a new InstanceEvent with the specified parameters. This constructor is used for processing servlet processing events.
    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
 public InstanceEvent(Wrapper wrapper,
    Filter filter,
    String type,
    ServletRequest request,
    ServletResponse response,
    Throwable exception) 
    Construct a new InstanceEvent with the specified parameters. This constructor is used for filter processing events.
    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
 public InstanceEvent(Wrapper wrapper,
    Servlet servlet,
    String type,
    ServletRequest request,
    ServletResponse response,
    Throwable exception) 
    Construct a new InstanceEvent with the specified parameters. This constructor is used for processing servlet processing events.
    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
Method from org.apache.catalina.InstanceEvent Summary:
getException,   getFilter,   getRequest,   getResponse,   getServlet,   getType,   getWrapper
Methods from java.util.EventObject:
getSource,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.catalina.InstanceEvent Detail:
 public Throwable getException() 
    Return the exception that occurred during the processing that was reported by this event.
 public Filter getFilter() 
    Return the filter instance for which this event occurred.
 public ServletRequest getRequest() 
    Return the servlet request for which this event occurred.
 public ServletResponse getResponse() 
    Return the servlet response for which this event occurred.
 public Servlet getServlet() 
    Return the servlet instance for which this event occurred.
 public String getType() 
    Return the event type of this event.
 public Wrapper getWrapper() 
    Return the Wrapper managing the servlet instance for which this event occurred.