dea.albums
Class BaseServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bydea.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
 
Constructor Summary
BaseServlet()
           
 
Method Summary
static void callPage(java.lang.String page, HttpServletRequest request, HttpServletResponse response)
          Display the output page
static java.lang.String emptyToNull(java.lang.String str)
          Process the HTTP Delete requests.
protected  java.lang.String getParameter(HttpServletRequest request, java.lang.String name, boolean isParameterRequired, java.lang.String defaultValue)
          Returns the requested parameter
 void init(ServletConfig newConfig)
           
 void service(HttpServletRequest request, HttpServletResponse response)
          ************************************************************************* Process all incoming HTTP requests.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

display

protected static final Display display
Get connection to display / log utils

Constructor Detail

BaseServlet

public BaseServlet()
Method Detail

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 - HttpServletRequest
response - 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 servlet
response - 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 servlet
name - The name of the parameter value to return
isParameterRequired - when true, an exception is thrown when the parameter cannot be found
defaultValue - 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.