本文整理匯總了Java中org.springframework.webflow.engine.support.ActionExecutingViewFactory類的典型用法代碼示例。如果您正苦於以下問題:Java ActionExecutingViewFactory類的具體用法?Java ActionExecutingViewFactory怎麽用?Java ActionExecutingViewFactory使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ActionExecutingViewFactory類屬於org.springframework.webflow.engine.support包,在下文中一共展示了ActionExecutingViewFactory類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: doInitialize
import org.springframework.webflow.engine.support.ActionExecutingViewFactory; //導入依賴的package包/類
@Override
protected void doInitialize() throws Exception {
final Flow flow = getLoginFlow();
final Expression expression = createExpression(flow, "flowScope.WsFederationIdentityProviderUrl", String.class);
final ActionExecutingViewFactory viewFactory = new ActionExecutingViewFactory(
new ExternalRedirectAction(expression));
createEndState(flow, "wsFederationRedirect", viewFactory);
final ActionState actionState = createActionState(flow, "wsFederationAction", createEvaluateAction("wsFederationAction"));
actionState.getTransitionSet().add(createTransition(TRANSITION_ID_SUCCESS, TRANSITION_ID_SEND_TICKET_GRANTING_TICKET));
actionState.getTransitionSet().add(createTransition(TRANSITION_ID_ERROR, getStartState(flow).getId()));
setStartState(flow, actionState);
final TransitionableState initLoginState = flow.getTransitionableState(STATE_ID_INITIALIZE_LOGIN);
final Iterator<Transition> it = initLoginState.getTransitionSet().iterator();
while (it.hasNext()) {
final Transition transition = it.next();
if (transition.getId().equals(TRANSITION_ID_SUCCESS)) {
final TargetStateResolver targetStateResolver = (TargetStateResolver) fromStringTo(TargetStateResolver.class)
.execute("wsFederationRedirect");
transition.setTargetStateResolver(targetStateResolver);
break;
}
}
}
開發者ID:hsj-xiaokang,項目名稱:springboot-shiro-cas-mybatis,代碼行數:28,代碼來源:WsFederationWebflowConfigurer.java
示例2: createEndState
import org.springframework.webflow.engine.support.ActionExecutingViewFactory; //導入依賴的package包/類
@Override
public EndState createEndState(final Flow flow, final String id, final String viewId, final boolean redirect) {
if (!redirect) {
return createEndState(flow, id, viewId);
}
final Expression expression = createExpression(viewId, String.class);
final ActionExecutingViewFactory viewFactory = new ActionExecutingViewFactory(new ExternalRedirectAction(expression));
return createEndState(flow, id, viewFactory);
}
示例3: doInitialize
import org.springframework.webflow.engine.support.ActionExecutingViewFactory; //導入依賴的package包/類
@Override
protected void doInitialize() throws Exception {
final Flow flow = getLoginFlow();
final Expression expression = createExpression(flow, "flowScope.WsFederationIdentityProviderUrl", String.class);
final ActionExecutingViewFactory viewFactory = new ActionExecutingViewFactory(
new ExternalRedirectAction(expression));
createEndState(flow, "wsFederationRedirect", viewFactory);
final ActionState actionState = createActionState(flow, "wsFederationAction", createEvaluateAction("wsFederationAction"));
actionState.getTransitionSet().add(createTransition(TRANSITION_ID_SUCCESS, TRANSITION_ID_SEND_TICKET_GRANTING_TICKET));
actionState.getTransitionSet().add(createTransition(TRANSITION_ID_ERROR, getStartState(flow).getId()));
setStartState(flow, actionState);
final TransitionableState loginTicketState = flow.getTransitionableState(STATE_ID_GENERATE_LOGIN_TICKET);
final Iterator<Transition> it = loginTicketState.getTransitionSet().iterator();
while (it.hasNext()) {
final Transition transition = it.next();
if (transition.getId().equals(TRANSITION_ID_GENERATED)) {
final TargetStateResolver targetStateResolver = (TargetStateResolver) fromStringTo(TargetStateResolver.class)
.execute("wsFederationRedirect");
transition.setTargetStateResolver(targetStateResolver);
break;
}
}
}