com.javaranch.common
Class ActionServlet

java.lang.Object
  |
  +--HttpServlet
        |
        +--com.javaranch.common.LogServlet
              |
              +--com.javaranch.common.ActionServlet

public abstract class ActionServlet
extends LogServlet

See Also:
Serialized Form

Nested Class Summary
static interface ActionServlet.ActionHandler
           
 
Field Summary
 
Fields inherited from class com.javaranch.common.LogServlet
getCount, postCount
 
Constructor Summary
ActionServlet()
           
 
Method Summary
 void addActionHandler(java.lang.String actionKey, ActionServlet.ActionHandler actionHandler)
          Override init and call this method for every action to be implemented.
 void doGet(HttpServletRequest request, HttpServletResponse response)
           
 void doPost(HttpServletRequest request, HttpServletResponse response)
           
 void forward(java.lang.String url, ServletData session)
          Load a servlet, or web page, or JSP, or whatever.
abstract  void init()
           
 
Methods inherited from class com.javaranch.common.LogServlet
checkConsoleLogging, debugReport, doGet, doPost, emailMessage, emailMessage, logMessage, reportProblem, setAccessParameterName, setAccessParameterValue, setLogConsole, setLogMemory, usable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionServlet

public ActionServlet()
Method Detail

init

public abstract void init()
                   throws ServletException
ServletException

addActionHandler

public void addActionHandler(java.lang.String actionKey,
                             ActionServlet.ActionHandler actionHandler)
Override init and call this method for every action to be implemented.

Parameters:
actionKey - The text that will be sent in the servlet parameter to kick off this action.

forward

public void forward(java.lang.String url,
                    ServletData session)
Load a servlet, or web page, or JSP, or whatever.


doPost

public final void doPost(HttpServletRequest request,
                         HttpServletResponse response)
                  throws ServletException,
                         java.io.IOException
Overrides:
doPost in class LogServlet
ServletException
java.io.IOException

doGet

public final void doGet(HttpServletRequest request,
                        HttpServletResponse response)
Overrides:
doGet in class LogServlet


Copyright ©2004 Paul Wheaton All Rights Reserved