Package net.anotheria.anosite.handler
Class BoxHandlerWrapper
- java.lang.Object
-
- net.anotheria.anosite.handler.BoxHandlerWrapper
-
- All Implemented Interfaces:
BoxHandler
public class BoxHandlerWrapper extends Object implements BoxHandler
-
-
Constructor Summary
Constructors Constructor Description BoxHandlerWrapper(BoxHandlerProducer aProducer, BoxHandler aHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BoxHandlerResponseprocess(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, Box box, BoxBean bean)Called in second processing cycle.BoxHandlerResponsesubmit(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, Box box)Called in first processing cycle if a form submit has been detected (post requst or special indicator parameters).
-
-
-
Constructor Detail
-
BoxHandlerWrapper
public BoxHandlerWrapper(BoxHandlerProducer aProducer, BoxHandler aHandler)
-
-
Method Detail
-
process
public BoxHandlerResponse process(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, Box box, BoxBean bean) throws BoxProcessException
Description copied from interface:BoxHandlerCalled in second processing cycle.- Specified by:
processin interfaceBoxHandler- Parameters:
req- the http servlet requestres- the http servlet responsebox- the box this handler has been associated with (and which was currently processed).bean- the already created bean.- Returns:
- response
- Throws:
BoxProcessException
-
submit
public BoxHandlerResponse submit(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, Box box) throws BoxProcessException
Description copied from interface:BoxHandlerCalled in first processing cycle if a form submit has been detected (post requst or special indicator parameters). Note: Usage of submit in handlers is discouraged, use actions whenever possible.- Specified by:
submitin interfaceBoxHandler- Parameters:
req- requestres- responsebox- box itself- Returns:
- response
- Throws:
BoxProcessException
-
-