Class ForwardAction
java.lang.Object
com.zfabrik.util.microweb.actions.ForwardAction
- All Implemented Interfaces:
IAction
given a URL of the form [prefix][remainder] we forward to [target][remainder]
-
Constructor Summary
ConstructorsConstructorDescriptionForwardAction
(String target) ForwardAction
(String prefix, String target) A forward action may work on a prefix basis. -
Method Summary
-
Constructor Details
-
ForwardAction
-
ForwardAction
A forward action may work on a prefix basis. That is, instead of serving exactly one target, it serves a whole namespace. It does so by taking off the context path and the prefix and appends the remainder to the target path (that should, as always, have a leading slash and no trailing slashes).- Parameters:
prefix
-target
-
-
-
Method Details
-
handle
public OutCome handle(jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws jakarta.servlet.ServletException, IOException - Specified by:
handle
in interfaceIAction
- Throws:
jakarta.servlet.ServletException
IOException
-