Fields Summary |
---|
public static final String | BEFORE_INIT_EVENTThe event indicating that the init() method is about
to be called for this instance. |
public static final String | AFTER_INIT_EVENTThe event indicating that the init() method has returned. |
public static final String | BEFORE_SERVICE_EVENTThe 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_EVENTThe 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_EVENTThe event indicating that the destroy method is about
to be called for this instance. |
public static final String | AFTER_DESTROY_EVENTThe event indicating that the destroy() method has
returned. |
public static final String | BEFORE_DISPATCH_EVENTThe 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_EVENTThe 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_EVENTThe 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_EVENTThe 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. |
private Throwable | exceptionThe exception that was thrown during the processing being reported
by this event (AFTER_INIT_EVENT, AFTER_SERVICE_EVENT,
AFTER_DESTROY_EVENT, AFTER_DISPATCH_EVENT, and AFTER_FILTER_EVENT only). |
private Filter | filterThe Filter instance for which this event occurred (BEFORE_FILTER_EVENT
and AFTER_FILTER_EVENT only). |
private ServletRequest | requestThe servlet request being processed (BEFORE_FILTER_EVENT,
AFTER_FILTER_EVENT, BEFORE_SERVICE_EVENT, and AFTER_SERVICE_EVENT). |
private ServletResponse | responseThe servlet response being processed (BEFORE_FILTER_EVENT,
AFTER_FILTER_EVENT, BEFORE_SERVICE_EVENT, and AFTER_SERVICE_EVENT). |
private Servlet | servletThe Servlet instance for which this event occurred (not present on
BEFORE_FILTER_EVENT or AFTER_FILTER_EVENT events). |
private String | typeThe event type this instance represents. |
private Wrapper | wrapperThe Wrapper managing the servlet instance for which this event occurred. |
Constructors Summary |
---|
public InstanceEvent(Wrapper wrapper, Filter filter, String type)Construct a new InstanceEvent with the specified parameters. This
constructor is used for filter lifecycle events.
// ----------------------------------------------------------- Constructors
super(wrapper);
this.wrapper = wrapper;
this.filter = filter;
this.servlet = null;
this.type = type;
|
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.
super(wrapper);
this.wrapper = wrapper;
this.filter = filter;
this.servlet = null;
this.type = type;
this.exception = exception;
|
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.
super(wrapper);
this.wrapper = wrapper;
this.filter = filter;
this.servlet = null;
this.type = type;
this.request = request;
this.response = response;
|
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.
super(wrapper);
this.wrapper = wrapper;
this.filter = filter;
this.servlet = null;
this.type = type;
this.request = request;
this.response = response;
this.exception = exception;
|
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.
super(wrapper);
this.wrapper = wrapper;
this.filter = null;
this.servlet = servlet;
this.type = type;
|
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.
super(wrapper);
this.wrapper = wrapper;
this.filter = null;
this.servlet = servlet;
this.type = type;
this.exception = exception;
|
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.
super(wrapper);
this.wrapper = wrapper;
this.filter = null;
this.servlet = servlet;
this.type = type;
this.request = request;
this.response = response;
|
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.
super(wrapper);
this.wrapper = wrapper;
this.filter = null;
this.servlet = servlet;
this.type = type;
this.request = request;
this.response = response;
this.exception = exception;
|
Methods Summary |
---|
public java.lang.Throwable | getException()Return the exception that occurred during the processing
that was reported by this event.
// ------------------------------------------------------------- Properties
return (this.exception);
|
public javax.servlet.Filter | getFilter()Return the filter instance for which this event occurred.
return (this.filter);
|
public javax.servlet.ServletRequest | getRequest()Return the servlet request for which this event occurred.
return (this.request);
|
public javax.servlet.ServletResponse | getResponse()Return the servlet response for which this event occurred.
return (this.response);
|
public javax.servlet.Servlet | getServlet()Return the servlet instance for which this event occurred.
return (this.servlet);
|
public java.lang.String | getType()Return the event type of this event.
return (this.type);
|
public Wrapper | getWrapper()Return the Wrapper managing the servlet instance for which this
event occurred.
return (this.wrapper);
|