|
Apache Tomcat 7.0.39 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.util.InstanceSupport
public final class InstanceSupport
Support class to assist in firing InstanceEvent notifications to registered InstanceListeners.
Constructor Summary | |
---|---|
InstanceSupport(Wrapper wrapper)
Construct a new InstanceSupport object associated with the specified Instance component. |
Method Summary | |
---|---|
void |
addInstanceListener(InstanceListener listener)
Add a lifecycle event listener to this component. |
void |
fireInstanceEvent(String type,
Filter filter)
Notify all lifecycle event listeners that a particular event has occurred for this Container. |
void |
fireInstanceEvent(String type,
Filter filter,
ServletRequest request,
ServletResponse response)
Notify all lifecycle event listeners that a particular event has occurred for this Container. |
void |
fireInstanceEvent(String type,
Filter filter,
ServletRequest request,
ServletResponse response,
Throwable exception)
Notify all lifecycle event listeners that a particular event has occurred for this Container. |
void |
fireInstanceEvent(String type,
Filter filter,
Throwable exception)
Notify all lifecycle event listeners that a particular event has occurred for this Container. |
void |
fireInstanceEvent(String type,
Servlet servlet)
Notify all lifecycle event listeners that a particular event has occurred for this Container. |
void |
fireInstanceEvent(String type,
Servlet servlet,
ServletRequest request,
ServletResponse response)
Notify all lifecycle event listeners that a particular event has occurred for this Container. |
void |
fireInstanceEvent(String type,
Servlet servlet,
ServletRequest request,
ServletResponse response,
Throwable exception)
Notify all lifecycle event listeners that a particular event has occurred for this Container. |
void |
fireInstanceEvent(String type,
Servlet servlet,
Throwable exception)
Notify all lifecycle event listeners that a particular event has occurred for this Container. |
Wrapper |
getWrapper()
Return the Wrapper with which we are associated. |
void |
removeInstanceListener(InstanceListener listener)
Remove a lifecycle event listener from this component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstanceSupport(Wrapper wrapper)
wrapper
- The component that will be the source
of events that we fireMethod Detail |
---|
public Wrapper getWrapper()
public void addInstanceListener(InstanceListener listener)
listener
- The listener to addpublic void fireInstanceEvent(String type, Filter filter)
type
- Event typefilter
- The relevant Filter for this eventpublic void fireInstanceEvent(String type, Filter filter, Throwable exception)
type
- Event typefilter
- The relevant Filter for this eventexception
- Exception that occurredpublic void fireInstanceEvent(String type, Filter filter, ServletRequest request, ServletResponse response)
type
- Event typefilter
- The relevant Filter for this eventrequest
- The servlet request we are processingresponse
- The servlet response we are processingpublic void fireInstanceEvent(String type, Filter filter, ServletRequest request, ServletResponse response, Throwable exception)
type
- Event typefilter
- The relevant Filter for this eventrequest
- The servlet request we are processingresponse
- The servlet response we are processingexception
- Exception that occurredpublic void fireInstanceEvent(String type, Servlet servlet)
type
- Event typeservlet
- The relevant Servlet for this eventpublic void fireInstanceEvent(String type, Servlet servlet, Throwable exception)
type
- Event typeservlet
- The relevant Servlet for this eventexception
- Exception that occurredpublic void fireInstanceEvent(String type, Servlet servlet, ServletRequest request, ServletResponse response)
type
- Event typeservlet
- The relevant Servlet for this eventrequest
- The servlet request we are processingresponse
- The servlet response we are processingpublic void fireInstanceEvent(String type, Servlet servlet, ServletRequest request, ServletResponse response, Throwable exception)
type
- Event typeservlet
- The relevant Servlet for this eventrequest
- The servlet request we are processingresponse
- The servlet response we are processingexception
- Exception that occurredpublic void removeInstanceListener(InstanceListener listener)
listener
- The listener to remove
|
Apache Tomcat 7.0.39 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |