Examples of SessionConfig


Examples of org.apache.qpid.server.configuration.SessionConfig

        getAtomicQueueCount().incrementAndGet();
    }
   
    private void incrementTxnEnqueueStats(final ServerMessage message)
    {
        SessionConfig session = message.getSessionConfig();
       
        if(session !=null && session.isTransactional())
        {
            _msgTxnEnqueues.incrementAndGet();
            _byteTxnEnqueues.addAndGet(message.getSize());
        }
    }
View Full Code Here

Examples of org.apache.qpid.server.configuration.SessionConfig

        getAtomicQueueCount().incrementAndGet();
    }
   
    private void incrementTxnEnqueueStats(final ServerMessage message)
    {
        SessionConfig session = message.getSessionConfig();
       
        if(session !=null && session.isTransactional())
        {
            _msgTxnEnqueues.incrementAndGet();
            _byteTxnEnqueues.addAndGet(message.getSize());
        }
    }
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.web.SessionConfig

        }
        for (Entry<String, String> entry :
                webxml.getServletMappings().entrySet()) {
            context.addServletMapping(entry.getKey(), entry.getValue());
        }
        SessionConfig sessionConfig = webxml.getSessionConfig();
        if (sessionConfig != null) {
            if (sessionConfig.getSessionTimeout() != null) {
                context.setSessionTimeout(
                        sessionConfig.getSessionTimeout().intValue());
            }
            SessionCookieConfig scc =
                context.getServletContext().getSessionCookieConfig();
            scc.setName(sessionConfig.getCookieName());
            scc.setDomain(sessionConfig.getCookieDomain());
            scc.setPath(sessionConfig.getCookiePath());
            scc.setComment(sessionConfig.getCookieComment());
            if (sessionConfig.getCookieHttpOnly() != null) {
                scc.setHttpOnly(sessionConfig.getCookieHttpOnly().booleanValue());
            }
            if (sessionConfig.getCookieSecure() != null) {
                scc.setSecure(sessionConfig.getCookieSecure().booleanValue());
            }
            if (sessionConfig.getCookieMaxAge() != null) {
                scc.setMaxAge(sessionConfig.getCookieMaxAge().intValue());
            }
            if (sessionConfig.getSessionTrackingModes().size() > 0) {
                context.getServletContext().setSessionTrackingModes(
                        sessionConfig.getSessionTrackingModes());
            }
        }

        // Context doesn't use version directly
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.web.SessionConfig

        }
        for (Entry<String, String> entry :
                webxml.getServletMappings().entrySet()) {
            context.addServletMapping(entry.getKey(), entry.getValue());
        }
        SessionConfig sessionConfig = webxml.getSessionConfig();
        if (sessionConfig != null) {
            if (sessionConfig.getSessionTimeout() != null) {
                context.setSessionTimeout(
                        sessionConfig.getSessionTimeout().intValue());
            }
            SessionCookieConfig scc =
                context.getServletContext().getSessionCookieConfig();
            scc.setName(sessionConfig.getCookieName());
            scc.setDomain(sessionConfig.getCookieDomain());
            scc.setPath(sessionConfig.getCookiePath());
            scc.setComment(sessionConfig.getCookieComment());
            if (sessionConfig.getCookieHttpOnly() != null) {
                scc.setHttpOnly(sessionConfig.getCookieHttpOnly().booleanValue());
            }
            if (sessionConfig.getCookieSecure() != null) {
                scc.setSecure(sessionConfig.getCookieSecure().booleanValue());
            }
            if (sessionConfig.getCookieMaxAge() != null) {
                scc.setMaxAge(sessionConfig.getCookieMaxAge().intValue());
            }
            if (sessionConfig.getSessionTrackingModes().size() > 0) {
                context.getServletContext().setSessionTrackingModes(
                        sessionConfig.getSessionTrackingModes());
            }
        }

        // Context doesn't use version directly
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.web.SessionConfig

        }
        for (Entry<String, String> entry :
                webxml.getServletMappings().entrySet()) {
            context.addServletMapping(entry.getKey(), entry.getValue());
        }
        SessionConfig sessionConfig = webxml.getSessionConfig();
        if (sessionConfig != null) {
            if (sessionConfig.getSessionTimeout() != null) {
                context.setSessionTimeout(
                        sessionConfig.getSessionTimeout().intValue());
            }
            SessionCookieConfig scc =
                context.getServletContext().getSessionCookieConfig();
            scc.setName(sessionConfig.getCookieName());
            scc.setDomain(sessionConfig.getCookieDomain());
            scc.setPath(sessionConfig.getCookiePath());
            scc.setComment(sessionConfig.getCookieComment());
            if (sessionConfig.getCookieHttpOnly() != null) {
                scc.setHttpOnly(sessionConfig.getCookieHttpOnly().booleanValue());
            }
            if (sessionConfig.getCookieSecure() != null) {
                scc.setSecure(sessionConfig.getCookieSecure().booleanValue());
            }
            if (sessionConfig.getCookieMaxAge() != null) {
                scc.setMaxAge(sessionConfig.getCookieMaxAge().intValue());
            }
            if (sessionConfig.getSessionTrackingModes().size() > 0) {
                context.getServletContext().setSessionTrackingModes(
                        sessionConfig.getSessionTrackingModes());
            }
        }

        // Context doesn't use version directly
View Full Code Here

Examples of org.foray.core.SessionConfig

     * @throws FOrayException For errors initializing the FOray-specific
     * objects.
     */
    private FoDocumentReader() throws IOException, FOrayException {
        final Log logger = Logging.makeQuietLogger();
        final SessionConfig sessionConfig = new SessionConfig();

        this.testDirectory = Environment.getTestDirectory();

        final FontServer fontServer = FOraySpecific.makeFontServer(logger,
                sessionConfig);
View Full Code Here

Examples of org.glassfish.web.deployment.runtime.SessionConfig

     * 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);
View Full Code Here

Examples of org.vngx.jsch.config.SessionConfig

    } else if( port < 0 ) {
      throw new IllegalArgumentException("SSH port cannot be less than zero: " + port);
    } else if( username == null || username.length()==0 ) {
      throw new IllegalArgumentException("SSH username cannot be null/empty: " + username);
    }
    _config = config != null ? config : new SessionConfig();
    _host = host;
    _port = port;
    _username = username;
    _versionExchange = new VersionExchange("SSH-2.0-" + JSch.VERSION);
  }
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.