net.spy.jwebkit.struts
Class JWebAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by net.spy.jwebkit.struts.JWebAction
Direct Known Subclasses:
AjaxAction, CacheFlushAction, DBSPAction, HoldAction, LogoutAction, ScriptAction

public abstract class JWebAction
extends org.apache.struts.action.Action

Superclass for all actions.


Field Summary
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
JWebAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Execute this action.
protected  net.spy.log.Logger getLogger()
          Get the logger for this instance.
protected  org.apache.struts.action.ActionForward spyCancel(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Handle a cancel.
protected abstract  org.apache.struts.action.ActionForward spyExecute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Execute this action.
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JWebAction

public JWebAction()
Method Detail

execute

public final org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
                                                            org.apache.struts.action.ActionForm form,
                                                            javax.servlet.http.HttpServletRequest req,
                                                            javax.servlet.http.HttpServletResponse res)
                                                     throws java.lang.Exception
Execute this action.

Overrides:
execute in class org.apache.struts.action.Action
Throws:
java.lang.Exception

spyExecute

protected abstract org.apache.struts.action.ActionForward spyExecute(org.apache.struts.action.ActionMapping mapping,
                                                                     org.apache.struts.action.ActionForm form,
                                                                     javax.servlet.http.HttpServletRequest req,
                                                                     javax.servlet.http.HttpServletResponse res)
                                                              throws java.lang.Exception
Execute this action.

Parameters:
mapping - the mapping
form - the form
req - the request
res - the response
Returns:
the ``next-hop'' forward
Throws:
java.lang.Exception - if there's a problem with the action

spyCancel

protected org.apache.struts.action.ActionForward spyCancel(org.apache.struts.action.ActionMapping mapping,
                                                           org.apache.struts.action.ActionForm form,
                                                           javax.servlet.http.HttpServletRequest req,
                                                           javax.servlet.http.HttpServletResponse res)
                                                    throws java.lang.Exception
Handle a cancel.

This implementation just returns the forward ``cancel.''

Throws:
java.lang.Exception

getLogger

protected net.spy.log.Logger getLogger()
Get the logger for this instance.

Returns:
a Logger instance


Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.