Class OutCome
java.lang.Object
com.zfabrik.util.microweb.actions.OutCome
- Direct Known Subclasses:
OutCome.Decorate
,OutCome.Delegate
,OutCome.Done
,OutCome.Error
,OutCome.Forward
,OutCome.GoTo
,OutCome.Include
,OutCome.PassThrough
,OutCome.Redirect
Representation of an OutCome of an action. OutCome's describe how to proceed
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
static final class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
apply
(jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) static OutCome
implies a decoration of a forward targetstatic OutCome
static OutCome
wraps another actions and makes sure there is no securitystatic OutCome
done()
static OutCome
done
(int sc) static OutCome
error
(int sc) Used to return with a status code.static OutCome
static OutCome
implies a direct forwardstatic OutCome
static OutCome
implies an internal forward, going through the engine againstatic OutCome
implies an includestatic OutCome
static OutCome
implies by-passing of the Microweb filter and continue with the filter chainstatic OutCome
implies a direct redirect, without going through the engine again
-
Constructor Details
-
OutCome
public OutCome()
-
-
Method Details
-
passThrough
implies by-passing of the Microweb filter and continue with the filter chain -
forward
implies a direct forward- Parameters:
target
-- Returns:
-
forward
-
include
implies an include- Parameters:
target
-- Returns:
-
include
-
decorate
implies a decoration of a forward target -
decorate
-
error
Used to return with a status code. -
error
-
done
-
done
-
redirect
implies a direct redirect, without going through the engine again- Parameters:
target
-- Returns:
-
goTo
implies an internal forward, going through the engine again- Parameters:
target
-- Returns:
-
delegate
wraps another actions and makes sure there is no security -
apply
public abstract void apply(jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException - Throws:
IOException
jakarta.servlet.ServletException
-