Class RedirectImmediatelyHandler
- java.lang.Object
-
- net.anotheria.anosite.handler.AbstractBoxHandler
-
- net.anotheria.anosite.handler.def.RedirectImmediatelyHandler
-
- All Implemented Interfaces:
BoxHandler
public class RedirectImmediatelyHandler extends AbstractBoxHandler
This handler sends a redirect request back to the browser. The redirect target is stored in the parameter1 of the associated box. This is used as builtin redirect mechanism.- Author:
- lrosenberg
-
-
Constructor Summary
Constructors Constructor Description RedirectImmediatelyHandler()
-
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)Returns ResponseContinue.INSTANCE.BoxHandlerResponsesubmit(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, Box box)Returns ResponseContinue.INSTANCE.-
Methods inherited from class net.anotheria.anosite.handler.AbstractBoxHandler
getLog, getResourceDataService, getTextResource, sendAttributeToPage
-
-
-
-
Method Detail
-
process
public BoxHandlerResponse process(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, Box box, BoxBean bean)
Description copied from class:AbstractBoxHandlerReturns ResponseContinue.INSTANCE.- Specified by:
processin interfaceBoxHandler- Overrides:
processin classAbstractBoxHandler- 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
-
submit
public BoxHandlerResponse submit(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, Box box) throws BoxSubmitException
Description copied from class:AbstractBoxHandlerReturns ResponseContinue.INSTANCE.- Specified by:
submitin interfaceBoxHandler- Overrides:
submitin classAbstractBoxHandler- Parameters:
req- requestres- responsebox- box itself- Returns:
- response
- Throws:
BoxSubmitException
-
-