|
rewrite-integration-faces 2.0.0.Alpha3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ocpsoft.rewrite.config.DefaultOperationBuilder
org.ocpsoft.rewrite.servlet.config.HttpOperation
org.ocpsoft.rewrite.faces.config.PhaseBinding
public class PhaseBinding
Wraps & holds a Submission until before or after a given JavaServer Faces PhaseId. This means that
validation and conversion are also deferred to within the Faces lifecycle.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.ocpsoft.rewrite.config.DefaultOperationBuilder |
|---|
DefaultOperationBuilder.NoOp |
| Method Summary | |
|---|---|
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). |
Object |
convert(Rewrite event,
EvaluationContext context,
Object value)
|
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)
|
Object |
submit(Rewrite event,
EvaluationContext context,
Object value)
|
boolean |
supportsRetrieval()
|
boolean |
supportsSubmission()
|
static PhaseBinding |
to(Submission submission)
Process the given Submission during the Faces life-cycle. |
boolean |
validate(Rewrite event,
EvaluationContext context,
Object value)
|
| Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpOperation |
|---|
perform |
| Methods inherited from class org.ocpsoft.rewrite.config.DefaultOperationBuilder |
|---|
and, create, wrap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static PhaseBinding to(Submission submission)
Submission during the Faces life-cycle.
public void performHttp(HttpServletRewrite event,
EvaluationContext context)
performHttp in class HttpOperation
public Object retrieve(Rewrite event,
EvaluationContext context)
retrieve in interface Retrieval
public Object submit(Rewrite event,
EvaluationContext context,
Object value)
submit in interface Submission
public boolean validate(Rewrite event,
EvaluationContext context,
Object value)
validate in interface Validator<Object>
public Object convert(Rewrite event,
EvaluationContext context,
Object value)
convert in interface Converter<Object>public 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 PhaseBinding onValidationFailure(Operation operation)
Operation; defaults to SendStatus.code(int) error code
404 unless otherwise specified.
|
rewrite-integration-faces 2.0.0.Alpha3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||