Class PhaseOperation<T extends PhaseOperation<T>>

java.lang.Object
org.ocpsoft.rewrite.config.DefaultOperationBuilder
org.ocpsoft.rewrite.servlet.config.HttpOperation
org.ocpsoft.rewrite.faces.config.PhaseOperation<T>
All Implemented Interfaces:
org.ocpsoft.common.pattern.Weighted, org.ocpsoft.rewrite.config.Operation, org.ocpsoft.rewrite.config.OperationBuilder
Direct Known Subclasses:
PhaseAction

public abstract class PhaseOperation<T extends PhaseOperation<T>> extends HttpOperation implements org.ocpsoft.common.pattern.Weighted
An Operation that wraps another operation to be performed during the JavaServer Faces lifecycle.
Author:
Fabien Marsaud, Lincoln Baxter, III
  • Constructor Details

    • PhaseOperation

      public PhaseOperation()
  • Method Details

    • performOperation

      public abstract void performOperation(HttpServletRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context)
      Perform the wrapped operation before or after the specified phases.
    • enqueue

      public static PhaseOperation<?> enqueue(org.ocpsoft.rewrite.config.Operation operation)
      Create an Operation that will defer a given Operation until one or more specified JavaServer Faces PhaseId instances specified via before(PhaseId...) or after(PhaseId...).
    • enqueue

      public static PhaseOperation<?> enqueue(org.ocpsoft.rewrite.config.Operation operation, int priority)
      Create an Operation that will enqueue a given Operation to be performed before or after one or more JavaServer Faces PhaseId instances specified via before(PhaseId...) or after(PhaseId...).
    • getBeforePhases

      public Set<jakarta.faces.event.PhaseId> getBeforePhases()
      Get the phases before which this PhaseOperation will be performed.
    • getAfterPhases

      public Set<jakarta.faces.event.PhaseId> getAfterPhases()
      Get the phases after which this PhaseOperation will be performed.
    • before

      public T before(jakarta.faces.event.PhaseId... phases)
      Perform this PhaseOperation before the given phases (Except PhaseId.RESTORE_VIEW). The deferred Operation will be performed once for each PhaseId provided.
    • after

      public T after(jakarta.faces.event.PhaseId... phases)
      Perform this PhaseOperation after the given phases (Except PhaseId.RENDER_RESPONSE). The deferred Operation will be performed once for each PhaseId provided.
    • performHttp

      public final void performHttp(HttpServletRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context)
      Specified by:
      performHttp in class HttpOperation
    • getSortedPhaseOperations

      public static ArrayList<PhaseOperation.DeferredOperation> getSortedPhaseOperations(jakarta.servlet.http.HttpServletRequest request)