Class IncludeAction
java.lang.Object
com.zfabrik.util.microweb.actions.IncludeAction
- All Implemented Interfaces:
IAction
given a URL of the form [prefix][remainder] we forward to [target][remainder]
-
Constructor Summary
ConstructorDescriptionIncludeAction(String target)
IncludeAction(String prefix, String target)
An include action may work on a prefix basis. -
Method Summary
-
Constructor Details
-
IncludeAction
-
IncludeAction
An include 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(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException- Specified by:
handle
in interfaceIAction
- Throws:
javax.servlet.ServletException
IOException
-