Examples of SessionConfigType


Examples of org.apache.geronimo.xbeans.javaee6.SessionConfigType

    }

    @Override
    public void preProcessWebXmlElement(WebAppType webApp, MergeContext context) throws DeploymentException {
        if (webApp.getSessionConfigArray().length == 1) {
            SessionConfigType sessionConfig = webApp.getSessionConfigArray(0);
            mergeSessionConfig(webApp, sessionConfig, context, ElementSource.WEB_XML);
            context.setAttribute("session-config", sessionConfig);
        } else if (webApp.getSessionConfigArray().length > 1) {
            throw new DeploymentException(WebDeploymentMessageUtils.createMultipleConfigurationWebAppErrorMessage("session-config"));
        }
View Full Code Here

Examples of org.apache.geronimo.xbeans.javaee6.SessionConfigType

            throw new DeploymentException(WebDeploymentMessageUtils.createMultipleConfigurationWebAppErrorMessage("session-config"));
        }
    }

    private CookieConfigType getCookieConfig(WebAppType webApp, MergeContext context) {
        SessionConfigType sessionConfig = getSessionConfig(webApp, context);
        if (sessionConfig.isSetCookieConfig()) {
            return sessionConfig.getCookieConfig();
        } else {
            return sessionConfig.addNewCookieConfig();
        }
    }
View Full Code Here

Examples of org.apache.geronimo.xbeans.javaee6.SessionConfigType

            return sessionConfig.addNewCookieConfig();
        }
    }

    private SessionConfigType getSessionConfig(WebAppType webApp, MergeContext context) {
        SessionConfigType sessionConfig = (SessionConfigType) context.getAttribute("session-config");
        if (sessionConfig == null) {
            sessionConfig = webApp.addNewSessionConfig();
            context.setAttribute("session-config", sessionConfig);
        }
        return sessionConfig;
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.