net.java.dev.moskito.webui.action
Class BaseMoskitoUIAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by net.java.dev.moskito.web.MoskitoAction
          extended by net.java.dev.moskito.webui.action.BaseMoskitoUIAction
All Implemented Interfaces:
IStatsProducer
Direct Known Subclasses:
BaseShowProducersAction, CssAction, InspectProducerAction, ShowExplanationsAction, ShowProducerAction, ShowSummaryAction

public abstract class BaseMoskitoUIAction
extends MoskitoAction


Field Summary
private static IProducerRegistryAPI api
           
static String BEAN_INTERVAL
           
static String BEAN_SORT_TYPE_PREFIX
           
static String BEAN_SORT_TYPE_SINGLE_PRODUCER_PREFIX
           
static String[] CAPTIONS
           
private static IDecoratorRegistry decoratorRegistry
           
static String DEFAULT_FORWARD
           
static String DEFAULT_INTERVAL
           
private  net.anotheria.util.sorter.SortType dummySortType
           
static String[] LINKS
           
static String MENU_ITEM_ALL_PRODUCERS
           
static String MENU_ITEM_CATEGORIES
           
static String MENU_ITEM_SUBSYSTEMS
           
static String MENU_ITEM_USE_CASES
           
private  String myProducerId
           
static String PARAM_FORWARD
           
static String PARAM_INTERVAL
           
private  net.anotheria.util.sorter.Sorter sorter
           
 
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
 
Constructor Summary
protected BaseMoskitoUIAction()
           
 
Method Summary
protected  String getActiveMenuCaption(HttpServletRequest req)
           
protected  IProducerRegistryAPI getAPI()
           
protected  String getCurrentInterval(HttpServletRequest req)
           
protected static IDecoratorRegistry getDecoratorRegistry()
           
protected  String getForward(HttpServletRequest req)
           
protected abstract  String getLinkToCurrentPage(HttpServletRequest req)
           
 String getProducerId()
           
 String getSubsystem()
           
private  String maskAsCSV(String link)
           
private  String maskAsExtension(String link, String extension)
           
private  String maskAsXML(String link)
           
protected  void postProcessExecute(ActionMapping mapping, ActionForm af, HttpServletRequest req, HttpServletResponse res)
           
protected  void preProcessExecute(ActionMapping mapping, ActionForm af, HttpServletRequest req, HttpServletResponse res)
           
 
Methods inherited from class net.java.dev.moskito.web.MoskitoAction
execute, getCategory, getMonitoringIntervals, getStats, moskitoExecute
 
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
 

Field Detail

PARAM_FORWARD

public static final String PARAM_FORWARD
See Also:
Constant Field Values

DEFAULT_FORWARD

public static final String DEFAULT_FORWARD
See Also:
Constant Field Values

BEAN_INTERVAL

public static final String BEAN_INTERVAL
See Also:
Constant Field Values

PARAM_INTERVAL

public static final String PARAM_INTERVAL
See Also:
Constant Field Values

DEFAULT_INTERVAL

public static final String DEFAULT_INTERVAL
See Also:
Constant Field Values

BEAN_SORT_TYPE_PREFIX

public static final String BEAN_SORT_TYPE_PREFIX
See Also:
Constant Field Values

BEAN_SORT_TYPE_SINGLE_PRODUCER_PREFIX

public static final String BEAN_SORT_TYPE_SINGLE_PRODUCER_PREFIX
See Also:
Constant Field Values

api

private static IProducerRegistryAPI api

decoratorRegistry

private static IDecoratorRegistry decoratorRegistry

MENU_ITEM_ALL_PRODUCERS

public static final String MENU_ITEM_ALL_PRODUCERS
See Also:
Constant Field Values

MENU_ITEM_CATEGORIES

public static final String MENU_ITEM_CATEGORIES
See Also:
Constant Field Values

MENU_ITEM_SUBSYSTEMS

public static final String MENU_ITEM_SUBSYSTEMS
See Also:
Constant Field Values

MENU_ITEM_USE_CASES

public static final String MENU_ITEM_USE_CASES
See Also:
Constant Field Values

CAPTIONS

public static final String[] CAPTIONS

LINKS

public static final String[] LINKS

myProducerId

private String myProducerId

sorter

private net.anotheria.util.sorter.Sorter sorter

dummySortType

private net.anotheria.util.sorter.SortType dummySortType
Constructor Detail

BaseMoskitoUIAction

protected BaseMoskitoUIAction()
Method Detail

getAPI

protected IProducerRegistryAPI getAPI()

getSubsystem

public String getSubsystem()
Specified by:
getSubsystem in interface IStatsProducer
Overrides:
getSubsystem in class MoskitoAction

getProducerId

public String getProducerId()
Specified by:
getProducerId in interface IStatsProducer
Overrides:
getProducerId in class MoskitoAction

getForward

protected String getForward(HttpServletRequest req)

getCurrentInterval

protected String getCurrentInterval(HttpServletRequest req)

preProcessExecute

protected void preProcessExecute(ActionMapping mapping,
                                 ActionForm af,
                                 HttpServletRequest req,
                                 HttpServletResponse res)
                          throws Exception
Overrides:
preProcessExecute in class MoskitoAction
Throws:
Exception

postProcessExecute

protected void postProcessExecute(ActionMapping mapping,
                                  ActionForm af,
                                  HttpServletRequest req,
                                  HttpServletResponse res)
                           throws Exception
Overrides:
postProcessExecute in class MoskitoAction
Throws:
Exception

getLinkToCurrentPage

protected abstract String getLinkToCurrentPage(HttpServletRequest req)

getActiveMenuCaption

protected String getActiveMenuCaption(HttpServletRequest req)

getDecoratorRegistry

protected static IDecoratorRegistry getDecoratorRegistry()

maskAsXML

private String maskAsXML(String link)

maskAsCSV

private String maskAsCSV(String link)

maskAsExtension

private String maskAsExtension(String link,
                               String extension)


Copyright © 2006 MoSKito Project Team. All Rights Reserved.
MoSKito, the open source java monitoring framework