|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject org.apache.catalina.InstanceEvent
public final class InstanceEvent
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 | |
---|---|
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. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
InstanceEvent(Wrapper wrapper,
Filter filter,
String type)
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,
Filter filter,
String type,
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,
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. |
|
InstanceEvent(Wrapper wrapper,
Servlet servlet,
String type,
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. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String BEFORE_INIT_EVENT
init()
method is about
to be called for this instance.
public static final String AFTER_INIT_EVENT
init()
method has returned.
public static final String BEFORE_SERVICE_EVENT
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
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
destroy
method is about
to be called for this instance.
public static final String AFTER_DESTROY_EVENT
destroy()
method has
returned.
public static final String BEFORE_DISPATCH_EVENT
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
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
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
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 Detail |
---|
public InstanceEvent(Wrapper wrapper, Filter filter, String type)
wrapper
- Wrapper managing this servlet instancefilter
- Filter instance for which this event occurredtype
- Event type (required)public InstanceEvent(Wrapper wrapper, Filter filter, String type, Throwable exception)
wrapper
- Wrapper managing this servlet instancefilter
- Filter instance for which this event occurredtype
- Event type (required)exception
- Exception that occurredpublic InstanceEvent(Wrapper wrapper, Filter filter, String type, ServletRequest request, ServletResponse response)
wrapper
- Wrapper managing this servlet instancefilter
- Filter instance for which this event occurredtype
- Event type (required)request
- Servlet request we are processingresponse
- Servlet response we are processingpublic InstanceEvent(Wrapper wrapper, Filter filter, String type, ServletRequest request, ServletResponse response, Throwable exception)
wrapper
- Wrapper managing this servlet instancefilter
- Filter instance for which this event occurredtype
- Event type (required)request
- Servlet request we are processingresponse
- Servlet response we are processingexception
- Exception that occurredpublic InstanceEvent(Wrapper wrapper, Servlet servlet, String type)
wrapper
- Wrapper managing this servlet instanceservlet
- Servlet instance for which this event occurredtype
- Event type (required)public InstanceEvent(Wrapper wrapper, Servlet servlet, String type, Throwable exception)
wrapper
- Wrapper managing this servlet instanceservlet
- Servlet instance for which this event occurredtype
- Event type (required)exception
- Exception that occurredpublic InstanceEvent(Wrapper wrapper, Servlet servlet, String type, ServletRequest request, ServletResponse response)
wrapper
- Wrapper managing this servlet instanceservlet
- Servlet instance for which this event occurredtype
- Event type (required)request
- Servlet request we are processingresponse
- Servlet response we are processingpublic InstanceEvent(Wrapper wrapper, Servlet servlet, String type, ServletRequest request, ServletResponse response, Throwable exception)
wrapper
- Wrapper managing this servlet instanceservlet
- Servlet instance for which this event occurredtype
- Event type (required)request
- Servlet request we are processingresponse
- Servlet response we are processingexception
- Exception that occurredMethod Detail |
---|
public Throwable getException()
public Filter getFilter()
public ServletRequest getRequest()
public ServletResponse getResponse()
public Servlet getServlet()
public String getType()
public Wrapper getWrapper()
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |