|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.gx.webmanager.handler.forms.routing.IfThenRouter
public class IfThenRouter
Route to a page based on value of formpart.
| Variable | Type | Mode | Default | Description |
|---|---|---|---|---|
| endofflow | Parameter | Required | false | If true, the flow XML will be removed from session. |
| page | Parameter | Optional | - | Page to route to. |
| formpart | Parameter | Required | - | Formpart with the value that needs to be checked. |
| allowed | Multiple Parameter | Optional | - | The allowed value(s). If one of them matches the formpart value, routing takes place. |
| Constructor Summary | |
|---|---|
IfThenRouter()
|
|
| Method Summary | |
|---|---|
RoutingResult |
doRouting(FormDefinition form,
State formState,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Performs routing based on the form definition and the values of the client. |
void |
init(FormComponentConfig c)
Passes the initialization parameters to the component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IfThenRouter()
| Method Detail |
|---|
public void init(FormComponentConfig c)
throws InitializationException
FormComponent
init in interface FormComponentc - The FormComponentConfig object that contains
configutation information for this component.
InitializationException - If initialization failed
public RoutingResult doRouting(FormDefinition form,
State formState,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Router
doRouting in interface Routerform - The definition of the current form flowformState - The object representing the state of the client filling out a form.req - The http servlet requestres - The http servlet response
null if the router doesn't match
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||