org.talika.tarsis.servlets
Class ErrorServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.talika.tarsis.servlets.AbstractServlet
              extended by org.talika.tarsis.servlets.ErrorServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public final class ErrorServlet
extends AbstractServlet

Error servlet of Tarsis MVC Framework.

Version:
$Revision: 269 $
Author:
Jose M. Palomar
See Also:
Serialized Form

Field Summary
static java.lang.String DEFAULT_ERROR_PAGE_PARAM
          Default error page param name.
 
Constructor Summary
ErrorServlet()
           
 
Method Summary
 void destroy()
          Called by the servlet container to indicate to a servlet that the servlet is being taken out of service.
 void init(javax.servlet.ServletConfig config)
          Called by the servlet container to indicate to a servlet that the servlet is being placed into service.
protected  void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Processes requests for both HTTP GET and POST methods.
 
Methods inherited from class org.talika.tarsis.servlets.AbstractServlet
doGet, doPost, getContext, getLogger, getServletInfo
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ERROR_PAGE_PARAM

public static final java.lang.String DEFAULT_ERROR_PAGE_PARAM
Default error page param name.

See Also:
Constant Field Values
Constructor Detail

ErrorServlet

public ErrorServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Called by the servlet container to indicate to a servlet that the servlet is being placed into service.

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class AbstractServlet
Parameters:
config - ServletConfig the ServletConfig object that contains configutation information for this servlet.
Throws:
javax.servlet.ServletException - if an exception occurs that interrupts the servlet's normal operation.
See Also:
Servlet.init(ServletConfig)

destroy

public void destroy()
Called by the servlet container to indicate to a servlet that the servlet is being taken out of service.

Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class AbstractServlet
See Also:
Servlet.destroy()

process

protected void process(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response)
                throws javax.servlet.ServletException,
                       java.io.IOException
Processes requests for both HTTP GET and POST methods.

Specified by:
process in class AbstractServlet
Parameters:
request - servlet object that contains the request the client has made of the servlet.
response - servlet object that contains the response the servlet sends to the client.
Throws:
javax.servlet.ServletException - if the request could not be handled.
java.io.IOException - if an input or output error is detected when the servlet handles request.


Copyright © 2002-2012 Talika Open Source Group. All Rights Reserved.