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

public abstract class OutCome extends Object
Representation of an OutCome of an action. OutCome's describe how to proceed
  • Constructor Details

    • OutCome

      public OutCome()
  • Method Details

    • passThrough

      public static OutCome passThrough()
      implies by-passing of the Microweb filter and continue with the filter chain
    • forward

      public static OutCome forward(String target)
      implies a direct forward
      Parameters:
      target -
      Returns:
    • forward

      public static OutCome forward(String prefix, String target)
    • include

      public static OutCome include(String target)
      implies an include
      Parameters:
      target -
      Returns:
    • include

      public static OutCome include(String prefix, String target)
    • decorate

      public static OutCome decorate(String decorator, String target)
      implies a decoration of a forward target
    • decorate

      public static OutCome decorate(String decorator, String prefix, String target)
    • error

      public static OutCome error(int sc)
      Used to return with a status code.
    • error

      public static OutCome error(int sc, String message)
    • done

      public static OutCome done()
    • done

      public static OutCome done(int sc)
    • redirect

      public static OutCome redirect(String target)
      implies a direct redirect, without going through the engine again
      Parameters:
      target -
      Returns:
    • goTo

      public static OutCome goTo(String target)
      implies an internal forward, going through the engine again
      Parameters:
      target -
      Returns:
    • delegate

      public static OutCome delegate(IAction action)
      wraps another actions and makes sure there is no security
    • apply

      public abstract void apply(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
      Throws:
      IOException
      javax.servlet.ServletException