Class 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 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:
        getStats in interface net.anotheria.moskito.core.producers.IStatsProducer
      • getProducerId

        public String getProducerId()
        Specified by:
        getProducerId in interface net.anotheria.moskito.core.producers.IStatsProducer
      • getCategory

        public String getCategory()
        Specified by:
        getCategory in interface net.anotheria.moskito.core.producers.IStatsProducer
      • getSubsystem

        public String getSubsystem()
        Specified by:
        getSubsystem in interface net.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 - HttpServletRequest
        resp - HttpServletResponse
        mapping - ActionMapping
        action - Action
        Returns:
        ActionCommand
        Throws:
        Exception - on errors from original action