Search in sources :

Example 1 with CookieProperties

use of org.glassfish.web.deployment.runtime.CookieProperties in project Payara by payara.

the class DynamicWebServletRegistrationImpl method configureSessionSettings.

/**
 * Create and configure the session manager for this web application
 * according to the persistence type specified.
 *
 * Also configure the other aspects of session management for this
 * web application according to the values specified in the session-config
 * element of sun-web.xml (and whether app is distributable)
 */
protected void configureSessionSettings(WebBundleDescriptor wbd, WebModuleConfig wmInfo) {
    SessionConfig cfg = null;
    SessionManager smBean = null;
    SessionProperties sessionPropsBean = null;
    CookieProperties cookieBean = null;
    if (iasBean != null) {
        cfg = iasBean.getSessionConfig();
        if (cfg != null) {
            smBean = cfg.getSessionManager();
            sessionPropsBean = cfg.getSessionProperties();
            cookieBean = cfg.getCookieProperties();
        }
    }
    configureSessionManager(smBean, wbd, wmInfo);
    configureSession(sessionPropsBean, wbd);
    configureCookieProperties(cookieBean);
}
Also used : CookieProperties(org.glassfish.web.deployment.runtime.CookieProperties) SessionProperties(org.glassfish.web.deployment.runtime.SessionProperties) SessionManager(org.glassfish.web.deployment.runtime.SessionManager) SessionConfig(org.glassfish.web.deployment.runtime.SessionConfig)

Aggregations

CookieProperties (org.glassfish.web.deployment.runtime.CookieProperties)1 SessionConfig (org.glassfish.web.deployment.runtime.SessionConfig)1 SessionManager (org.glassfish.web.deployment.runtime.SessionManager)1 SessionProperties (org.glassfish.web.deployment.runtime.SessionProperties)1