當前位置: 首頁>>代碼示例>>Java>>正文


Java ActionExecutingViewFactory類代碼示例

本文整理匯總了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);
}
 
開發者ID:mrluo735,項目名稱:cas-5.1.0,代碼行數:10,代碼來源:AbstractCasWebflowConfigurer.java

示例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;
        }
    }
}
 
開發者ID:yuweijun,項目名稱:cas-server-4.2.1,代碼行數:28,代碼來源:WsFederationWebflowConfigurer.java


注:本文中的org.springframework.webflow.engine.support.ActionExecutingViewFactory類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。