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

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


        return cache;
    }

    private void loadLegacySettings( ServletContext servletContext )
    {
        PageFlowConfig pageflowConfig = ConfigUtil.getConfig().getPageFlowConfig();
        assert pageflowConfig != null : "Received an invalid PageFlowConfig object";

        Integer forwardOverflowCount =
                loadLegacyParam( FORWARD_OVERFLOW_COUNT_PARAM, servletContext, "max-forwards-per-request" );
        if ( forwardOverflowCount != null )
        {
            _forwardOverflowCount = forwardOverflowCount.intValue();
        }
        else
        {
            // Why can't we read the default value from the XmlObjext?
            _forwardOverflowCount = pageflowConfig.getMaxForwardsPerRequest();
        }

        Integer nestingOverflowCount =
                loadLegacyParam( NESTING_OVERFLOW_COUNT_PARAM, servletContext, "max-nesting-stack-depth" );
        if ( nestingOverflowCount != null )
        {
            _nestingOverflowCount = nestingOverflowCount.intValue();
        }
        else
        {
            // Why can't we read the default value from the XmlObjext?
            _nestingOverflowCount = pageflowConfig.getMaxNestingStackDepth();
        }

        String doSecureForwards = servletContext.getInitParameter( SECURE_FORWARDS_PARAM );

        if ( doSecureForwards != null )
        {
            _log.warn( "Servlet context-param " + SECURE_FORWARDS_PARAM +
                       " is deprecated; use the ensure-secure-forwards element within pageflow-config in "
                       + InternalConstants.NETUI_CONFIG_PATH );
            _secureForwards = Boolean.valueOf( doSecureForwards ).booleanValue();
        }
        else
        {
            _secureForwards = pageflowConfig.isEnsureSecureForwards();
        }
       
       
    }
View Full Code Here


        //
        boolean noCache = moduleConfig.getControllerConfig().getNocache();

        if ( ! noCache )
        {
            PageFlowConfig pfConfig = ConfigUtil.getConfig().getPageFlowConfig();
           
            if ( pfConfig != null )
            {
                PreventCache preventCache = pfConfig.getPreventCache();
               
                if ( preventCache != null )
                {
                    switch ( preventCache.getValue() )
                    {
View Full Code Here

        boolean isNestable = InternalUtils.isNestable( mc );
        PageFlowStack pfStack = PageFlowStack.get( request, getServletContext(), false );

        if ( isNestable && pfStack != null )
        {
            PageFlowConfig options = ConfigUtil.getConfig().getPageFlowConfig();

            if ( options == null || ! options.isEnableSelfNesting() )
            {
                PageFlowController existing = pfStack.popUntil(request, pageFlowClass, true);

                if (existing != null) {
                    existing.persistInSession(request, response);
View Full Code Here

        return moduleConfig.getControllerConfig().getMultipartClass() != null;
    }

    public static MultipartHandler getMultipartHandlerType()
    {
        PageFlowConfig pfConfig = ConfigUtil.getConfig().getPageFlowConfig();
        return pfConfig != null ? pfConfig.getMultipartHandler() : null;
    }
View Full Code Here

    public static void throwPageFlowException( PageFlowException effect, ServletRequest request )
            throws PageFlowException
    {
        if ( request != null && effect.causeMayBeSessionExpiration() && sessionExpired( request ) )
        {
            PageFlowConfig pfc = ConfigUtil.getConfig().getPageFlowConfig();
            if ( pfc == null || pfc.isThrowSessionExpiredException() )
            {
                throw new SessionExpiredException( effect );
            }
        }
       
View Full Code Here

        }
       
        //
        // Look for ModuleConfigLocators in netui-config.xml.
        //
        PageFlowConfig pfConfig = ConfigUtil.getConfig().getPageFlowConfig();
       
        if ( pfConfig != null )
        {
            ModuleConfigLocatorConfig[] mcLocators = pfConfig.getModuleConfigLocators();
           
            if ( mcLocators != null )
            {
                for ( int i = 0; i < mcLocators.length; i++ )
                {
View Full Code Here

        boolean isNestable = InternalUtils.isNestable( mc );
        PageFlowStack pfStack = PageFlowStack.get( request, getServletContext(), false );

        if ( isNestable && pfStack != null )
        {
            PageFlowConfig options = ConfigUtil.getConfig().getPageFlowConfig();

            if ( options == null || ! options.isEnableSelfNesting() )
            {
                PageFlowController existing = pfStack.popUntil(request, pageFlowClass, true);

                if (existing != null) {
                    existing.persistInSession(request, response);
View Full Code Here

        }
       
        //
        // Look for ModuleConfigLocators in beehive-netui-config.xml.
        //
        PageFlowConfig pfConfig = ConfigUtil.getConfig().getPageFlowConfig();
       
        if ( pfConfig != null )
        {
            ModuleConfigLocatorConfig[] mcLocators = pfConfig.getModuleConfigLocators();
           
            if ( mcLocators != null )
            {
                for ( int i = 0; i < mcLocators.length; i++ )
                {
View Full Code Here

        //
        boolean noCache = moduleConfig.getControllerConfig().getNocache();

        if ( ! noCache )
        {
            PageFlowConfig pfConfig = ConfigUtil.getConfig().getPageFlowConfig();
           
            if ( pfConfig != null )
            {
                PreventCache preventCache = pfConfig.getPreventCache();
               
                if ( preventCache != null )
                {
                    switch ( preventCache.getValue() )
                    {
View Full Code Here

        return cache;
    }

    private void loadLegacySettings( ServletContext servletContext )
    {
        PageFlowConfig pageflowConfig = ConfigUtil.getConfig().getPageFlowConfig();
        assert pageflowConfig != null : "Received an invalid PageFlowConfig object";

        Integer forwardOverflowCount =
                loadLegacyParam( FORWARD_OVERFLOW_COUNT_PARAM, servletContext, "max-forwards-per-request" );
        if ( forwardOverflowCount != null )
        {
            _forwardOverflowCount = forwardOverflowCount.intValue();
        }
        else
        {
            // Why can't we read the default value from the XmlObjext?
            _forwardOverflowCount = pageflowConfig.getMaxForwardsPerRequest();
        }

        Integer nestingOverflowCount =
                loadLegacyParam( NESTING_OVERFLOW_COUNT_PARAM, servletContext, "max-nesting-stack-depth" );
        if ( nestingOverflowCount != null )
        {
            _nestingOverflowCount = nestingOverflowCount.intValue();
        }
        else
        {
            // Why can't we read the default value from the XmlObjext?
            _nestingOverflowCount = pageflowConfig.getMaxNestingStackDepth();
        }

        String doSecureForwards = servletContext.getInitParameter( SECURE_FORWARDS_PARAM );

        if ( doSecureForwards != null )
        {
            _log.warn( "Servlet context-param " + SECURE_FORWARDS_PARAM +
                       " is deprecated; use the ensure-secure-forwards element within pageflow-config in "
                       + InternalConstants.NETUI_CONFIG_PATH );
            _secureForwards = Boolean.valueOf( doSecureForwards ).booleanValue();
        }
        else
        {
            _secureForwards = pageflowConfig.isEnsureSecureForwards();
        }
       
       
    }
View Full Code Here

TOP

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

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.