org.scrashmeow.ojb.console.framework
Class ViewerAction

java.lang.Object
  |
  +--org.apache.struts.action.Action
        |
        +--org.apache.struts.actions.DispatchAction
              |
              +--org.apache.struts.actions.LookupDispatchAction
                    |
                    +--org.scrashmeow.ojb.console.framework.OjbcLookupDispatchAction
                          |
                          +--org.scrashmeow.ojb.console.framework.ViewerAction
All Implemented Interfaces:
ApplicationServiceAware, java.io.Serializable, ViewerActionAware
Direct Known Subclasses:
CommittingFormAction, DescriptorConnectionPropertiesAction, DescriptorFieldPropertiesAction, DescriptorObjectPropertiesAction, DescriptorRepositoryPropertiesAction, InitRepositoryEditorAction, ObjectEditorAction, ObjectReferenceEditorAction, RepositoryBrowseAction, ViewHelpAction, ViewJavaSystemPropertiesAction, ViewJspRuntimePropertiesAction, ViewOjbPropertiesAction

public abstract class ViewerAction
extends OjbcLookupDispatchAction
implements ViewerActionAware

Base class for an action that displays information

Author:
Alexander Bibighaus
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.actions.LookupDispatchAction
keyMethodMap, localeMap
 
Fields inherited from class org.apache.struts.actions.DispatchAction
clazz, log, messages, methods, types
 
Fields inherited from class org.apache.struts.action.Action
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY
 
Fields inherited from interface org.scrashmeow.ojb.console.framework.dispatch.ViewerActionAware
DISPLAY_KEY, DISPLAY_METHOD
 
Constructor Summary
ViewerAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward display(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response)
          The dispatch method that is triggered when a user wishes to display the data, typically the default dispatch action behavior.
 org.apache.struts.action.ActionForward getDisplayForward(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request)
          Returns the forward for the display dispatch
protected  java.util.Map getKeyMethodMap()
           
protected  org.apache.struts.action.ActionForward unspecified(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class org.scrashmeow.ojb.console.framework.OjbcLookupDispatchAction
createBreadcrumbs, execute, findRedirectingForward, getApplicationService, initializeUserSession
 
Methods inherited from class org.apache.struts.actions.LookupDispatchAction
execute
 
Methods inherited from class org.apache.struts.actions.DispatchAction
dispatchMethod, getMethod, unspecified
 
Methods inherited from class org.apache.struts.action.Action
execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, perform, perform, resetToken, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewerAction

public ViewerAction()
Method Detail

getKeyMethodMap

protected java.util.Map getKeyMethodMap()
Overrides:
getKeyMethodMap in class OjbcLookupDispatchAction
Returns:
@add-javadoc!!!
See Also:
LookupDispatchAction.getKeyMethodMap()

unspecified

protected org.apache.struts.action.ActionForward unspecified(org.apache.struts.action.ActionMapping mapping,
                                                             org.apache.struts.action.ActionForm form,
                                                             HttpServletRequest request,
                                                             HttpServletResponse response)
                                                      throws java.lang.Exception
Overrides:
unspecified in class org.apache.struts.actions.DispatchAction
Parameters:
mapping - @add-javadoc!!!
form - @add-javadoc!!!
request - @add-javadoc!!!
response - @add-javadoc!!!
Returns:
@add-javadoc!!!
Throws:
java.lang.Exception - @add-javadoc!!!
See Also:
org.apache.struts.actions.DispatchAction#unspecified(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse)

display

public org.apache.struts.action.ActionForward display(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      HttpServletRequest request,
                                                      HttpServletResponse response)
                                               throws java.lang.Exception
Description copied from interface: ViewerActionAware
The dispatch method that is triggered when a user wishes to display the data, typically the default dispatch action behavior.

Specified by:
display in interface ViewerActionAware
Parameters:
mapping - @add-javadoc!!!
form - @add-javadoc!!!
request - @add-javadoc!!!
response - @add-javadoc!!!
Returns:
@add-javadoc!!!
Throws:
java.lang.Exception - @add-javadoc!!!
See Also:
org.scrashmeow.ojb.console.framework.ViewerActionAware#display(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse)

getDisplayForward

public org.apache.struts.action.ActionForward getDisplayForward(org.apache.struts.action.ActionMapping mapping,
                                                                org.apache.struts.action.ActionForm form,
                                                                HttpServletRequest request)
                                                         throws java.lang.Exception
Description copied from interface: ViewerActionAware
Returns the forward for the display dispatch

Specified by:
getDisplayForward in interface ViewerActionAware
Parameters:
mapping - @add-javadoc!!!
form - @add-javadoc!!!
request - @add-javadoc!!!
Returns:
@add-javadoc!!!
Throws:
java.lang.Exception - @add-javadoc!!!
See Also:
ViewerActionAware.getDisplayForward(ActionMapping, ActionForm, HttpServletRequest)


Copyright © 2003 Alexander Bibighaus et al. All Rights Reserved.