Esempio n. 1
0
 /**
  * (non-Javadoc)
  *
  * @see javax.servlet.http.HttpServlet#service(javax.servlet.ServletRequest,
  *     javax.servlet.ServletResponse)
  */
 public void service(ServletRequest _request, ServletResponse _response)
     throws ServletException, IOException {
   try {
     _delegate.service(_request, _response);
   } catch (Throwable ex) {
     // Make Sure the Stack Trace is Printed to the Log
     ex.printStackTrace();
     // Set the Data to be Displayed
     AErrorHandler.setPageErrorData(ex, (HttpServletRequest) _request);
     // Re-direct to Error Page
     redirectToErrorPage((HttpServletRequest) _request, (HttpServletResponse) _response);
   }
 }
Esempio n. 2
0
 /**
  * (non-Javadoc)
  *
  * @see javax.servlet.GenericServlet#getServletInfo()
  */
 public String getServletInfo() {
   return _delegate.getServletInfo();
 }
Esempio n. 3
0
 /**
  * (non-Javadoc)
  *
  * @see javax.servlet.GenericServlet#getServletConfig()
  */
 public ServletConfig getServletConfig() {
   return _delegate.getServletConfig();
 }
Esempio n. 4
0
 /**
  * (non-Javadoc)
  *
  * @see javax.servlet.GenericServlet#destroy()
  */
 public void destroy() {
   _delegate.destroy();
 }
Esempio n. 5
0
 /**
  * (non-Javadoc)
  *
  * @see javax.servlet.GenericServlet#init(javax.servlet.ServletConfig)
  */
 public void init(ServletConfig _servletConfig) throws ServletException {
   _delegate = new FacesServlet();
   _delegate.init(_servletConfig);
   _errorPage = _servletConfig.getInitParameter(INIT_PARAM_ERROR_PAGE);
 }