public final class InstanceSupport extends Object
Constructor and Description |
---|
InstanceSupport(Wrapper wrapper)
Construct a new InstanceSupport object associated with the specified
Instance component.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public InstanceSupport(Wrapper wrapper)
wrapper
- The component that will be the source
of events that we firepublic 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 removeCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.