public abstract class PhaseOperation<T extends PhaseOperation<T>> extends HttpOperation implements org.ocpsoft.common.pattern.Weighted
DefaultOperationBuilder.NoOp| Constructor and Description |
|---|
PhaseOperation() |
| Modifier and Type | Method and Description |
|---|---|
T |
after(javax.faces.event.PhaseId... phases)
Perform this
PhaseOperation after the given phases (Except PhaseId.RENDER_RESPONSE). |
T |
before(javax.faces.event.PhaseId... phases)
Perform this
PhaseOperation before the given phases (Except PhaseId.RESTORE_VIEW). |
static PhaseOperation<?> |
enqueue(Operation operation)
Defer the given
Operation until the specified phases. |
static PhaseOperation<?> |
enqueue(Operation operation,
int priority)
Enqueue an
Operation to be performed before or after one or many JavaServer
Faces life-cycle phases, specified via invoking before(PhaseId...) or after(PhaseId...). |
Set<javax.faces.event.PhaseId> |
getAfterPhases()
Get the phases after which this
PhaseOperation will be performed. |
Set<javax.faces.event.PhaseId> |
getBeforePhases()
Get the phases before which this
PhaseOperation will be performed. |
EvaluationContext |
getContext()
Get the
EvaluationContext with which this PhaseOperation was deferred. |
HttpServletRewrite |
getEvent()
Get the
HttpServletRewrite with which this PhaseOperation was deferred. |
static ArrayList<PhaseOperation<?>> |
getSortedPhaseOperations(javax.servlet.http.HttpServletRequest request) |
void |
performHttp(HttpServletRewrite event,
EvaluationContext context)
Invoked during the rewrite process, just add "this" to a queue of deferred bindings in the request
|
abstract void |
performOperation(HttpServletRewrite event,
EvaluationContext context)
Perform operation before or after the specified phases.
|
performand, create, wrappublic abstract void performOperation(HttpServletRewrite event, EvaluationContext context)
public Set<javax.faces.event.PhaseId> getBeforePhases()
PhaseOperation will be performed.public Set<javax.faces.event.PhaseId> getAfterPhases()
PhaseOperation will be performed.public T before(javax.faces.event.PhaseId... phases)
PhaseOperation before the given phases (Except PhaseId.RESTORE_VIEW). The deferred
Operation will be performed once for each PhaseId provided.public T after(javax.faces.event.PhaseId... phases)
PhaseOperation after the given phases (Except PhaseId.RENDER_RESPONSE). The deferred
Operation will be performed once for each PhaseId provided.public final void performHttp(HttpServletRewrite event, EvaluationContext context)
performHttp in class HttpOperationpublic static ArrayList<PhaseOperation<?>> getSortedPhaseOperations(javax.servlet.http.HttpServletRequest request)
public HttpServletRewrite getEvent()
HttpServletRewrite with which this PhaseOperation was deferred.public EvaluationContext getContext()
EvaluationContext with which this PhaseOperation was deferred.public static PhaseOperation<?> enqueue(Operation operation)
Operation until the specified phases.public static PhaseOperation<?> enqueue(Operation operation, int priority)
Operation to be performed before or after one or many JavaServer
Faces life-cycle phases, specified via invoking before(PhaseId...) or after(PhaseId...).Copyright © 2013 OCPsoft. All Rights Reserved.