org.apache.agila.impl.servlet
Class ActionServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.agila.impl.servlet.ActionServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
AgilaServlet, VelocityActionServlet

public abstract class ActionServlet
extends javax.servlet.http.HttpServlet

Base for all action servlets.

Version:
$Id: $
Author:
Geir Magnusson Jr.
See Also:
Serialized Form

Constructor Summary
ActionServlet()
           
 
Method Summary
abstract  void defaultAction(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Called when there is a request w/ no action verb
protected abstract  java.lang.String getActionVerb()
           
 void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Service routine to find action and dispatch to handler
abstract  void unknownAction(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Called when there is a request w/ an unknown action verb
 
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, init, log, log
 
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

service

public void service(javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse res)
             throws javax.servlet.ServletException,
                    java.io.IOException
Service routine to find action and dispatch to handler

Overrides:
service in class javax.servlet.http.HttpServlet
Parameters:
req -
res -
Throws:
javax.servlet.ServletException
java.io.IOException

getActionVerb

protected abstract java.lang.String getActionVerb()

defaultAction

public abstract void defaultAction(javax.servlet.http.HttpServletRequest req,
                                   javax.servlet.http.HttpServletResponse res)
                            throws javax.servlet.ServletException,
                                   java.io.IOException
Called when there is a request w/ no action verb

Parameters:
req -
res -
Throws:
javax.servlet.ServletException
java.io.IOException

unknownAction

public abstract void unknownAction(javax.servlet.http.HttpServletRequest req,
                                   javax.servlet.http.HttpServletResponse res)
                            throws javax.servlet.ServletException,
                                   java.io.IOException
Called when there is a request w/ an unknown action verb

Parameters:
req -
res -
Throws:
javax.servlet.ServletException
java.io.IOException


Copyright © 2004-2005 The Apache Software Foundation. All Rights Reserved.