rewrite-integration-faces 1.0.2.Final

org.ocpsoft.rewrite.faces.config
Class PhaseAction

java.lang.Object
  extended by org.ocpsoft.rewrite.config.OperationBuilder
      extended by org.ocpsoft.rewrite.servlet.config.HttpOperation
          extended by org.ocpsoft.rewrite.faces.config.PhaseOperation<PhaseAction>
              extended by org.ocpsoft.rewrite.faces.config.PhaseAction
All Implemented Interfaces:
org.ocpsoft.common.pattern.Weighted, Operation

public class PhaseAction
extends PhaseOperation<PhaseAction>

Invoke an action before or after a given JavaServer Faces PhaseId. Has a Weighted.priority() of 0.

Author:
Lincoln Baxter, III

Method Summary
 void performOperation(HttpServletRewrite event, EvaluationContext context)
           
 int priority()
           
static void removeQueuedPhaseActions(javax.servlet.http.HttpServletRequest request)
           
static PhaseAction retrieveFrom(Retrieval retrieval)
          Invoke the given Retrieval and process InvocationResultHandler instances on the result value (if any.)
static PhaseAction submitTo(Submission to, Retrieval from)
          Invoke Submission.submit(org.ocpsoft.rewrite.event.Rewrite, EvaluationContext, Object), use the result of the given Retrieval.retrieve(org.ocpsoft.rewrite.event.Rewrite, EvaluationContext) as the value for this submission.
 
Methods inherited from class org.ocpsoft.rewrite.faces.config.PhaseOperation
after, before, enqueue, enqueue, getAfterPhases, getBeforePhases, getContext, getEvent, getSortedPhaseOperations, performHttp
 
Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpOperation
perform
 
Methods inherited from class org.ocpsoft.rewrite.config.OperationBuilder
and
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

priority

public int priority()

removeQueuedPhaseActions

public static void removeQueuedPhaseActions(javax.servlet.http.HttpServletRequest request)

performOperation

public void performOperation(HttpServletRewrite event,
                             EvaluationContext context)
Specified by:
performOperation in class PhaseOperation<PhaseAction>

retrieveFrom

public static PhaseAction retrieveFrom(Retrieval retrieval)
Invoke the given Retrieval and process InvocationResultHandler instances on the result value (if any.)

By default, this action is invoked after PhaseId.RESTORE_VIEW


submitTo

public static PhaseAction submitTo(Submission to,
                                   Retrieval from)
Invoke Submission.submit(org.ocpsoft.rewrite.event.Rewrite, EvaluationContext, Object), use the result of the given Retrieval.retrieve(org.ocpsoft.rewrite.event.Rewrite, EvaluationContext) as the value for this submission. Process InvocationResultHandler instances on the result value (if any.)

By default, this action is invoked after PhaseId.RESTORE_VIEW


rewrite-integration-faces 1.0.2.Final

Copyright © 2012 OCPsoft. All Rights Reserved.