Package net.anotheria.anosite.action
Class ActionProducer
- java.lang.Object
-
- net.anotheria.anosite.action.ActionProducer
-
- All Implemented Interfaces:
net.anotheria.moskito.core.producers.IStatsProducer
public class ActionProducer extends Object implements net.anotheria.moskito.core.producers.IStatsProducer
Moskito producer for Actions.- Author:
- h3ll
-
-
Constructor Summary
Constructors Constructor Description ActionProducer(String id)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ActionCommandexecute(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, ActionMapping mapping, Action action)Execute method - which simply delegates call to real Action clazz, and manages Moskito-Stats!StringgetCategory()StringgetProducerId()List<net.anotheria.moskito.core.producers.IStats>getStats()StringgetSubsystem()
-
-
-
Constructor Detail
-
ActionProducer
public ActionProducer(String id)
Constructor.- Parameters:
id- producer id
-
-
Method Detail
-
getStats
public List<net.anotheria.moskito.core.producers.IStats> getStats()
- Specified by:
getStatsin interfacenet.anotheria.moskito.core.producers.IStatsProducer
-
getProducerId
public String getProducerId()
- Specified by:
getProducerIdin interfacenet.anotheria.moskito.core.producers.IStatsProducer
-
getCategory
public String getCategory()
- Specified by:
getCategoryin interfacenet.anotheria.moskito.core.producers.IStatsProducer
-
getSubsystem
public String getSubsystem()
- Specified by:
getSubsystemin interfacenet.anotheria.moskito.core.producers.IStatsProducer
-
execute
protected ActionCommand execute(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, ActionMapping mapping, Action action) throws Exception
Execute method - which simply delegates call to real Action clazz, and manages Moskito-Stats!- Parameters:
req-HttpServletRequestresp-HttpServletResponsemapping-ActionMappingaction-Action- Returns:
ActionCommand- Throws:
Exception- on errors from original action
-
-