Class AbstractBoxHandler

    • Constructor Detail

      • AbstractBoxHandler

        protected AbstractBoxHandler()
        Constructor for extending classes.
    • Method Detail

      • getLog

        protected org.slf4j.Logger getLog()
        Returns the log instance. This way each handler has a useable log.
        Returns:
        Logger.
      • process

        public BoxHandlerResponse process​(jakarta.servlet.http.HttpServletRequest req,
                                          jakarta.servlet.http.HttpServletResponse res,
                                          Box box,
                                          BoxBean bean)
                                   throws BoxProcessException
        Returns ResponseContinue.INSTANCE.
        Specified by:
        process in interface BoxHandler
        Parameters:
        req - the http servlet request
        res - the http servlet response
        box - the box this handler has been associated with (and which was currently processed).
        bean - the already created bean.
        Returns:
        response
        Throws:
        BoxProcessException
      • sendAttributeToPage

        protected void sendAttributeToPage​(String name,
                                           Object attribute)
        Used to put attribute to current request till next request
        Parameters:
        name - attribute name
        attribute - attribute value
      • getTextResource

        protected static String getTextResource​(String name)
        Returns a text resource by its name.
        Parameters:
        name - - resource name
        Returns:
        String text resource or warning about missing resource