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 classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidapply(jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) static OutComeimplies a decoration of a forward targetstatic OutComestatic OutComewraps another actions and makes sure there is no securitystatic OutComedone()static OutComedone(int sc) static OutComeerror(int sc) Used to return with a status code.static OutComestatic OutComeimplies a direct forwardstatic OutComestatic OutComeimplies an internal forward, going through the engine againstatic OutComeimplies an includestatic OutComestatic OutComeimplies by-passing of the Microweb filter and continue with the filter chainstatic OutComeimplies 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:
IOExceptionjakarta.servlet.ServletException
-