dea.albums
Class BaseServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
dea.albums.BaseServlet
- All Implemented Interfaces:
- IDebugLevels, java.io.Serializable, Servlet, ServletConfig
- Direct Known Subclasses:
- AddPicData, ChkSite, GenOut, LinkPicData, ViewCat, ViewObj, ViewPicData
- public abstract class BaseServlet
- extends HttpServlet
- implements IDebugLevels
- See Also:
- Serialized Form
Field Summary |
protected static Display |
display
Get connection to display / log utils |
Fields inherited from interface dea.common.IDebugLevels |
BASIC, DEBUG_ALL, ERROR, METH_DETAIL, METH_ENTER, METH_EXIT, METH_EXT, METH_GET, METH_SET, METH_VARS, SHOW_PASS |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
display
protected static final Display display
- Get connection to display / log utils
BaseServlet
public BaseServlet()
init
public void init(ServletConfig newConfig)
throws ServletException
- Specified by:
init
in interface Servlet
- Throws:
ServletException
callPage
public static void callPage(java.lang.String page,
HttpServletRequest request,
HttpServletResponse response)
- Display the output page
- Parameters:
request
- HttpServletRequestresponse
- HttpServletResponse
service
public void service(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
java.io.IOException
- *************************************************************************
Process all incoming HTTP requests. Note Get Post ect. are redirected here.
- Parameters:
request
- Object that encapsulates the request to the servletresponse
- Object that encapsulates the response from the servlet
- Throws:
ServletException
java.io.IOException
emptyToNull
public static java.lang.String emptyToNull(java.lang.String str)
- Process the HTTP Delete requests. Here for application server
compatibility only calls service(request, response)
getParameter
protected java.lang.String getParameter(HttpServletRequest request,
java.lang.String name,
boolean isParameterRequired,
java.lang.String defaultValue)
throws java.lang.Exception
- Returns the requested parameter
- Parameters:
request
- Object that encapsulates the request to the servletname
- The name of the parameter value to returnisParameterRequired
- when true, an exception is thrown when the parameter cannot be founddefaultValue
- The default value to return when the parameter is not found
- Returns:
- The parameter value
- Throws:
ServletException
- Thrown when the parameter is not found
java.lang.Exception
Copyright © 2001-2005 Round Mountain Rescue Ranch. All Rights Reserved.