public class PhaseBinding extends HttpOperation implements Binding, Convertable<PhaseBinding>, Validatable<PhaseBinding>, CompositeOperation
Submission until before or after a given JavaServer Faces PhaseId. This means that
validation and conversion are also deferred to within the Faces lifecycle.DefaultOperationBuilder.NoOp| Modifier and Type | Method and Description |
|---|---|
PhaseBinding |
after(javax.faces.event.PhaseId... phases)
Perform this
PhaseBinding after the given phases (Except PhaseId.RENDER_RESPONSE). |
PhaseBinding |
before(javax.faces.event.PhaseId... phases)
Perform this
PhaseBinding before the given phases (Except PhaseId.RESTORE_VIEW). |
<X extends Converter<?>> |
convertedBy(Class<X> type) |
PhaseBinding |
convertedBy(Converter<?> converter) |
List<Operation> |
getOperations() |
PhaseBinding |
onValidationFailure(Operation operation)
On validation failure, perform the given
Operation; defaults to SendStatus.code(int) error code
404 unless otherwise specified. |
void |
performHttp(HttpServletRewrite event,
EvaluationContext context) |
Object |
retrieve(Rewrite event,
EvaluationContext context,
Parameter<?> parameter) |
Object |
submit(Rewrite event,
EvaluationContext context,
Parameter<?> parameter,
Object value) |
boolean |
supportsRetrieval() |
boolean |
supportsSubmission() |
static PhaseBinding |
to(Submission submission)
Process the given
Submission during the Faces life-cycle. |
<X extends Validator<?>> |
validatedBy(Class<X> type) |
PhaseBinding |
validatedBy(Validator<?> validator) |
performand, create, wrappublic static PhaseBinding to(Submission submission)
Submission during the Faces life-cycle.public void performHttp(HttpServletRewrite event, EvaluationContext context)
performHttp in class HttpOperationpublic Object retrieve(Rewrite event, EvaluationContext context, Parameter<?> parameter)
public Object submit(Rewrite event, EvaluationContext context, Parameter<?> parameter, Object value)
submit in interface Submissionpublic boolean supportsRetrieval()
supportsRetrieval in interface Bindingpublic boolean supportsSubmission()
supportsSubmission in interface Bindingpublic PhaseBinding before(javax.faces.event.PhaseId... phases)
PhaseBinding before the given phases (Except PhaseId.RESTORE_VIEW). The deferred
Submission will be performed once for each PhaseId provided.public PhaseBinding after(javax.faces.event.PhaseId... phases)
PhaseBinding after the given phases (Except PhaseId.RENDER_RESPONSE). The deferred
Submission will be performed once for each PhaseId provided.public <X extends Validator<?>> PhaseBinding validatedBy(Class<X> type)
validatedBy in interface Validatable<PhaseBinding>public PhaseBinding validatedBy(Validator<?> validator)
validatedBy in interface Validatable<PhaseBinding>public <X extends Converter<?>> PhaseBinding convertedBy(Class<X> type)
convertedBy in interface Convertable<PhaseBinding>public PhaseBinding convertedBy(Converter<?> converter)
convertedBy in interface Convertable<PhaseBinding>public PhaseBinding onValidationFailure(Operation operation)
Operation; defaults to SendStatus.code(int) error code
404 unless otherwise specified.public List<Operation> getOperations()
getOperations in interface CompositeOperationCopyright © 2013 OCPsoft. All Rights Reserved.