com.ibm.websphere.servlet.event

Interface ServletErrorListener

All Superinterfaces:
java.util.EventListener

  1. public interface ServletErrorListener
  2. extends java.util.EventListener
Event listener interface used to receive notifications about servlet errors.

Method Summary

Modifier and Type Method and Description
  1. void
onServletDestroyError(ServletErrorEvent evt)
Triggered when an error occurs while executing the servlet's destroy() method.
  1. void
onServletInitError(ServletErrorEvent evt)
Triggered when an error occurs while executing the servlet's init() method.
  1. void
onServletServiceDenied(ServletErrorEvent evt)
Triggered when a servlet request for service has been denied.
  1. void
onServletServiceError(ServletErrorEvent evt)
Triggered when an error occurs while executing the servlet's service() method.

Method Detail

onServletInitError

  1. void onServletInitError(ServletErrorEvent evt)
Triggered when an error occurs while executing the servlet's init() method. This method will be triggered if the servlet throws an exception from its init() method.
See Also:
Servlet.init(javax.servlet.ServletConfig)

onServletServiceError

  1. void onServletServiceError(ServletErrorEvent evt)
Triggered when an error occurs while executing the servlet's service() method. This method will be triggered if the servlet throws an exception from its service() method or if the servlet calls the response.sendError() method.
See Also:
HttpServletResponse.sendError(int), Servlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)

onServletDestroyError

  1. void onServletDestroyError(ServletErrorEvent evt)
Triggered when an error occurs while executing the servlet's destroy() method. This method will be triggered if the servlet throws an exception from its destroy() method.
See Also:
Servlet.destroy()

onServletServiceDenied

  1. void onServletServiceDenied(ServletErrorEvent evt)
Triggered when a servlet request for service has been denied. This event occurs when a request is received for a servlet, but the servlet is not available to process the request. This is typically triggered when the servlet throws an UnavailableException or if the servlet calls the response.sendError() method with an error code of SC_SERVICE_UNAVAILABLE.
See Also:
HttpServletResponse.SC_SERVICE_UNAVAILABLE, HttpServletResponse.sendError(int), UnavailableException