Examples of addActionConfig()


Examples of com.opensymphony.xwork2.config.entities.PackageConfig.addActionConfig()

        results.put(Action.SUCCESS, successConfig);

        interceptors.add(new InterceptorMapping("params", new ParametersInterceptor()));

        ActionConfig testActionConfig = new ActionConfig(null, TestAction.class, null, results, interceptors);
        defaultPackageConfig.addActionConfig(TEST_ACTION_NAME, testActionConfig);

        interceptors = new ArrayList();
        interceptors.add(new InterceptorMapping("token", new TokenInterceptor()));

        results = new HashMap();
View Full Code Here

Examples of com.opensymphony.xwork2.config.entities.PackageConfig.addActionConfig()

        results = new HashMap();

        ActionConfig tokenActionConfig = new ActionConfig(null, TestAction.class, null, results, interceptors);
        tokenActionConfig.addResultConfig(new ResultConfig("invalid.token", MockResult.class.getName()));
        tokenActionConfig.addResultConfig(new ResultConfig("success", MockResult.class.getName()));
        defaultPackageConfig.addActionConfig(TOKEN_ACTION_NAME, tokenActionConfig);

        interceptors = new ArrayList();
        interceptors.add(new InterceptorMapping("token-session", new TokenSessionStoreInterceptor()));

        results = new HashMap();
View Full Code Here

Examples of com.opensymphony.xwork2.config.entities.PackageConfig.addActionConfig()

        // empty results for token session unit test
        results = new HashMap();
        ActionConfig tokenSessionActionConfig = new ActionConfig(null, TestAction.class, null, results, interceptors);
        tokenSessionActionConfig.addResultConfig(new ResultConfig("invalid.token", MockResult.class.getName()));
        tokenSessionActionConfig.addResultConfig(new ResultConfig("success", MockResult.class.getName()));
        defaultPackageConfig.addActionConfig(TOKEN_SESSION_ACTION_NAME, tokenSessionActionConfig);

        configuration.addPackageConfig("", defaultPackageConfig);

        Map testActionTagResults = new HashMap();
        testActionTagResults.put(Action.SUCCESS, new ResultConfig(Action.SUCCESS, TestActionTagResult.class.getName(), new HashMap()));
View Full Code Here

Examples of com.opensymphony.xwork2.config.entities.PackageConfig.addActionConfig()

        Map testActionTagResults = new HashMap();
        testActionTagResults.put(Action.SUCCESS, new ResultConfig(Action.SUCCESS, TestActionTagResult.class.getName(), new HashMap()));
        testActionTagResults.put(Action.INPUT, new ResultConfig(Action.INPUT, TestActionTagResult.class.getName(), new HashMap()));
        ActionConfig testActionTagActionConfig = new ActionConfig((String) null, TestAction.class, (Map) null, testActionTagResults, new ArrayList());
        defaultPackageConfig.addActionConfig("testActionTagAction", testActionTagActionConfig);

        PackageConfig namespacePackageConfig = new PackageConfig("namespacePackage");
        namespacePackageConfig.setNamespace(TEST_NAMESPACE);
        namespacePackageConfig.addParent(defaultPackageConfig);
View Full Code Here

Examples of com.opensymphony.xwork2.config.entities.PackageConfig.addActionConfig()

        PackageConfig namespacePackageConfig = new PackageConfig("namespacePackage");
        namespacePackageConfig.setNamespace(TEST_NAMESPACE);
        namespacePackageConfig.addParent(defaultPackageConfig);

        ActionConfig namespaceAction = new ActionConfig(null, TestAction.class, null, null, null);
        namespacePackageConfig.addActionConfig(TEST_NAMESPACE_ACTION, namespaceAction);

        configuration.addPackageConfig("namespacePackage", namespacePackageConfig);
    }

    /**
 
View Full Code Here

Examples of com.opensymphony.xwork2.config.entities.PackageConfig.addActionConfig()

                    actionConfig.getExceptionMappings());
            newActionConfig.setMethodName(methodName);
            String packageName = actionConfig.getPackageName();
            newActionConfig.setPackageName(packageName);
            PackageConfig packageConfig = configuration.getPackageConfig(packageName);
            packageConfig.addActionConfig(newActionName, actionConfig);
        }

        return (actionMethods.size() > 0);
    }
}
View Full Code Here

Examples of com.opensymphony.xwork2.config.entities.PackageConfig.addActionConfig()

            List interceptors = new ArrayList();
            interceptors.add(new InterceptorMapping("params", new ParametersInterceptor()));
            interceptors.add(new InterceptorMapping("execAndWait", waitInterceptor));

            ActionConfig ac = new ActionConfig(null, ExecuteAndWaitDelayAction.class, null, results, interceptors);
            wait.addActionConfig("action1", ac);

            configuration.addPackageConfig("", wait);
        }

        public void register(ContainerBuilder builder, LocatableProperties props) throws ConfigurationException {
View Full Code Here

Examples of org.apache.struts.config.ApplicationConfig.addActionConfig()

        mapping.setPath(convertActionNameToPath(mapping.getName()));

        ActionFormBean  formBean =
            new ActionFormBean(mapping.getName(), FORM_BEAN_CLASS);

        appConfig.addActionConfig(mapping);
        appConfig.addFormBeanConfig(formBean);

        HttpServletResponse response   =
            (HttpServletResponse)pageContext.getResponse();
View Full Code Here

Examples of org.apache.struts.config.ApplicationConfig.addActionConfig()

        mapping.setPath(convertActionNameToPath(mapping.getName()));

        ActionFormBean  formBean =
            new ActionFormBean(mapping.getName(), FORM_BEAN_CLASS);

        appConfig.addActionConfig(mapping);
        appConfig.addFormBeanConfig(formBean);

        HttpServletResponse response   =
            (HttpServletResponse)pageContext.getResponse();
View Full Code Here

Examples of org.apache.struts.config.ApplicationConfig.addActionConfig()

        mapping.setPath(convertActionNameToPath(mapping.getName()));

        ActionFormBean  formBean =
            new ActionFormBean(mapping.getName(), FORM_BEAN_CLASS);

        appConfig.addActionConfig(mapping);
        appConfig.addFormBeanConfig(formBean);

        HttpServletResponse response   =
            (HttpServletResponse)pageContext.getResponse();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.