Package org.apache.beehive.netui.util.config.bean

Examples of org.apache.beehive.netui.util.config.bean.PageFlowHandlersConfig


            });

            Document document = db.parse(is);

            PageFlowActionInterceptorsConfig pfActionInterceptorsConfig = parsePfActionInterceptorsConfig(document);
            PageFlowHandlersConfig pfHandlersConfig = parsePfHandlersConfig(document);
            PageFlowConfig pfConfig = parsePfConfig(document);
            PageFlowFactoriesConfig pfFactoriesConfig = parsePfFactoriesConfig(document);
            SharedFlowRefConfig[] sharedFlowRefConfigs = parseSharedFlowRefConfigs(document);
            RequestInterceptorsConfig requestInterceptorsConfig = parseRequestInterceptorsConfig(document);
View Full Code Here


    private static final PageFlowHandlersConfig parsePfHandlersConfig(Document document) {
        Element elem = DomUtils.getChildElementByName(document.getDocumentElement(), "pageflow-handlers");
        if(elem == null)
            return null;

        return new PageFlowHandlersConfig(
            parseHandlerConfig(elem.getElementsByTagName("action-forward-handler")),
            parseHandlerConfig(elem.getElementsByTagName("exceptions-handler")),
            parseHandlerConfig(elem.getElementsByTagName("forward-redirect-handler")),
            parseHandlerConfig(elem.getElementsByTagName("login-handler")),
            parseHandlerConfig(elem.getElementsByTagName("storage-handler")),
View Full Code Here

        //
        // Load/create Handlers.
        //
        NetUIConfig netuiConfig = ConfigUtil.getConfig();
        PageFlowHandlersConfig handlers = netuiConfig.getPageFlowHandlers();

        DefaultHandler defaultActionForwardHandler = new DefaultActionForwardHandler( servletContext );
        DefaultHandler defaultExceptionsHandler = new DefaultExceptionsHandler( servletContext );
        DefaultHandler defaultForwardRedirectHandler = new DefaultForwardRedirectHandler( servletContext );
        DefaultHandler defaultLoginHandler = new DefaultLoginHandler( servletContext );
        DefaultHandler defaultStorageHandler = new DeferredSessionStorageHandler( servletContext );
        DefaultHandler defaultReloadableClassHandler = new DefaultReloadableClassHandler( servletContext );

        _actionForwardHandler = ( ActionForwardHandler )
                adaptHandler( handlers != null ? handlers.getActionForwardHandlers() : null,
                              defaultActionForwardHandler, ActionForwardHandler.class, servletContext );

        _exceptionsHandler = ( ExceptionsHandler )
                adaptHandler( handlers != null ? handlers.getExceptionsHandlers() : null, defaultExceptionsHandler,
                              ExceptionsHandler.class, servletContext );

        _forwardRedirectHandler = ( ForwardRedirectHandler )
                adaptHandler( handlers != null ? handlers.getForwardRedirectHandlers() : null,
                              defaultForwardRedirectHandler, ForwardRedirectHandler.class, servletContext );

        _loginHandler = ( LoginHandler )
                adaptHandler( handlers != null ? handlers.getLoginHandlers() : null, defaultLoginHandler,
                              LoginHandler.class, servletContext );

        _storageHandler = ( StorageHandler )
                adaptHandler( handlers != null ? handlers.getStorageHandlers() : null, defaultStorageHandler,
                              StorageHandler.class, servletContext );

        _reloadableClassHandler = ( ReloadableClassHandler )
                adaptHandler( handlers != null ? handlers.getReloadableClassHandlers() : null,
                              defaultReloadableClassHandler, ReloadableClassHandler.class, servletContext );
    }
View Full Code Here

            });

            Document document = db.parse(is);

            PageFlowActionInterceptorsConfig pfActionInterceptorsConfig = parsePfActionInterceptorsConfig(document);
            PageFlowHandlersConfig pfHandlersConfig = parsePfHandlersConfig(document);
            PageFlowConfig pfConfig = parsePfConfig(document);
            PageFlowFactoriesConfig pfFactoriesConfig = parsePfFactoriesConfig(document);
            SharedFlowRefConfig[] sharedFlowRefConfigs = parseSharedFlowRefConfigs(document);
            RequestInterceptorsConfig requestInterceptorsConfig = parseRequestInterceptorsConfig(document);
View Full Code Here

    private static final PageFlowHandlersConfig parsePfHandlersConfig(Document document) {
        Element elem = DomUtils.getChildElementByName(document.getDocumentElement(), "pageflow-handlers");
        if(elem == null)
            return null;

        return new PageFlowHandlersConfig(
            parseHandlerConfig(elem.getElementsByTagName("action-forward-handler")),
            parseHandlerConfig(elem.getElementsByTagName("exceptions-handler")),
            parseHandlerConfig(elem.getElementsByTagName("forward-redirect-handler")),
            parseHandlerConfig(elem.getElementsByTagName("login-handler")),
            parseHandlerConfig(elem.getElementsByTagName("storage-handler")),
View Full Code Here

        //
        // Load/create Handlers.
        //
        NetUIConfig netuiConfig = ConfigUtil.getConfig();
        PageFlowHandlersConfig handlers = netuiConfig.getPageFlowHandlers();

        DefaultHandler defaultActionForwardHandler = new DefaultActionForwardHandler( servletContext );
        DefaultHandler defaultExceptionsHandler = new DefaultExceptionsHandler( servletContext );
        DefaultHandler defaultForwardRedirectHandler = new DefaultForwardRedirectHandler( servletContext );
        DefaultHandler defaultLoginHandler = new DefaultLoginHandler( servletContext );
        DefaultHandler defaultStorageHandler = new DeferredSessionStorageHandler( servletContext );
        DefaultHandler defaultReloadableClassHandler = new DefaultReloadableClassHandler( servletContext );

        _actionForwardHandler = ( ActionForwardHandler )
                adaptHandler( handlers != null ? handlers.getActionForwardHandlers() : null,
                              defaultActionForwardHandler, ActionForwardHandler.class, servletContext );

        _exceptionsHandler = ( ExceptionsHandler )
                adaptHandler( handlers != null ? handlers.getExceptionsHandlers() : null, defaultExceptionsHandler,
                              ExceptionsHandler.class, servletContext );

        _forwardRedirectHandler = ( ForwardRedirectHandler )
                adaptHandler( handlers != null ? handlers.getForwardRedirectHandlers() : null,
                              defaultForwardRedirectHandler, ForwardRedirectHandler.class, servletContext );

        _loginHandler = ( LoginHandler )
                adaptHandler( handlers != null ? handlers.getLoginHandlers() : null, defaultLoginHandler,
                              LoginHandler.class, servletContext );

        _storageHandler = ( StorageHandler )
                adaptHandler( handlers != null ? handlers.getStorageHandlers() : null, defaultStorageHandler,
                              StorageHandler.class, servletContext );

        _reloadableClassHandler = ( ReloadableClassHandler )
                adaptHandler( handlers != null ? handlers.getReloadableClassHandlers() : null,
                              defaultReloadableClassHandler, ReloadableClassHandler.class, servletContext );
    }
View Full Code Here

            });

            Document document = db.parse(is);

            PageFlowActionInterceptorsConfig pfActionInterceptorsConfig = parsePfActionInterceptorsConfig(document);
            PageFlowHandlersConfig pfHandlersConfig = parsePfHandlersConfig(document);
            PageFlowConfig pfConfig = parsePfConfig(document);
            PageFlowFactoriesConfig pfFactoriesConfig = parsePfFactoriesConfig(document);
            SharedFlowRefConfig[] sharedFlowRefConfigs = parseSharedFlowRefConfigs(document);
            RequestInterceptorsConfig requestInterceptorsConfig = parseRequestInterceptorsConfig(document);
View Full Code Here

    private static final PageFlowHandlersConfig parsePfHandlersConfig(Document document) {
        Element elem = DomUtils.getChildElementByName(document.getDocumentElement(), "pageflow-handlers");
        if(elem == null)
            return null;

        return new PageFlowHandlersConfig(
            parseHandlerConfig(elem.getElementsByTagName("action-forward-handler")),
            parseHandlerConfig(elem.getElementsByTagName("exceptions-handler")),
            parseHandlerConfig(elem.getElementsByTagName("forward-redirect-handler")),
            parseHandlerConfig(elem.getElementsByTagName("login-handler")),
            parseHandlerConfig(elem.getElementsByTagName("storage-handler")),
View Full Code Here

TOP

Related Classes of org.apache.beehive.netui.util.config.bean.PageFlowHandlersConfig

Copyright © 2018 www.massapicom. 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.