Examples of SessionManager


Examples of com.google.code.rees.scope.session.SessionManager

                .createMock(ConversationAdapter.class);
        cManager.processConversations(cAdapter);
        EasyMock.expectLastCall();
        EasyMock.replay(cManager);

        SessionManager sManager = EasyMock.createMock(SessionManager.class);
        SessionAdapter sAdapter = EasyMock.createMock(SessionAdapter.class);
        sManager.processSessionFields(sAdapter);
        EasyMock.expectLastCall();
        EasyMock.replay(sManager);

        ScopeAdapterFactory adapterFactory = EasyMock
                .createMock(ScopeAdapterFactory.class);
View Full Code Here

Examples of com.mmoscene.h4j.network.sessions.SessionManager

                                TimeUnit.MILLISECONDS,
                                Executors.defaultThreadFactory()
                        )
                ));

        session_manager = new SessionManager();
    }
View Full Code Here

Examples of com.planet_ink.coffee_web.http.SessionManager

    props.load(iniInputStream);
   
    config.load(props);
   
    final ServletManager servletsManager = new ServletManager(config);
    final SessionManager sessionsManager = new SessionManager(config);
    final FileCache fileCacheManager = new FileCache(config,config.getFileManager());
    final MimeConverterManager mimeConverterManager = new MimeConverter(config);
    final HTTPReqProcessor fileGetter = new HTTPReqProcessor(config);
    config.setSessions(sessionsManager);
    config.setServletMan(servletsManager);
View Full Code Here

Examples of com.rop.session.SessionManager

public class ServletRequestContextBuilderTest {

    @Test
    public void testIpParsed() {
        FormattingConversionService conversionService = mock(FormattingConversionService.class);
        SessionManager sessionManager = mock(SessionManager.class);
        ServletRequestContextBuilder requestContextBuilder = new ServletRequestContextBuilder(conversionService);
        RopContext ropContext = mock(RopContext.class);

        //构造HttpServletRequest
        MockHttpServletRequest servletRequest = new MockHttpServletRequest();
View Full Code Here

Examples of com.santiagolizardo.beobachter.beans.SessionManager

        LogWindow logWindow = (LogWindow) frame;
        filePaths.add(logWindow.getFile()
            .getAbsolutePath());
      }

      SessionManager sessionManager = new SessionManager();
      try {
        sessionManager.save(name, filePaths);
      } catch (IOException e) {
        logger.warning(e.getMessage());
        DialogFactory.showErrorMessage(null, tr("Invalid session name") + "\r\n" + e.getMessage());
      }
    }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.SessionManager

    * return null if not defined or other problem
    * 7.0 xpath was "/server/web-container/session-config/session-manager/manager-properties";
    */ 
    public ManagerProperties getInstanceSessionManagerManagerProperties() {
       
        SessionManager smBean = this.getInstanceSessionManager();
        if(smBean == null) {
            return null;
        }
        return smBean.getManagerProperties();
    }
View Full Code Here

Examples of com.sun.enterprise.deployment.runtime.web.SessionManager

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

Examples of com.sun.xml.ws.runtime.dev.SessionManager

     * @param endpoint endpoint instance
     * @param sessionId session identifier
     * @return The Session
     */
    static Session startSession(WSEndpoint endpoint, String sessionId) {
        SessionManager manager = SessionManager.getSessionManager(endpoint,null);
        Session session = manager.getSession(sessionId);
        if (session == null) {
            session = manager.createSession(sessionId);
        }

        return session;
    }
View Full Code Here

Examples of com.vmware.vim.binding.vim.SessionManager

      httpConfig.getKeyStoreConfig().setKeyPassword(CmsKeyStore.getVCExtPassword());
      httpConfig.setThumbprintVerifier(getThumbprintVerifier());
      HttpClientConfiguration clientConfig = HttpClientConfiguration.Factory.newInstance();
      clientConfig.setHttpConfiguration(httpConfig);
      Client client = Client.Factory.createClient(sdkUri, version, clientConfig);
      SessionManager sm = null;
      try {
         ManagedObjectReference svcRef = new ManagedObjectReference();
         svcRef.setType("ServiceInstance");
         svcRef.setValue("ServiceInstance");
         ServiceInstance si = client.createStub(ServiceInstance.class, svcRef);
         sm = client.createStub(SessionManager.class,
               si.getContent().getSessionManager());
         sm.loginExtensionByCertificate(extKey, "en");
         String ticket = sm.acquireSessionTicket(null);
         logger.info("got session ticket using extension");
         return ticket;
      } catch (Exception e) {
         logger.error("failed to get session ticket using extension", e);
         return null;
View Full Code Here

Examples of de.javakaffee.web.msm.MemcachedSessionService.SessionManager

        tomcat.addUser(USER_NAME,PASSWORD);
        tomcat.addRole(USER_NAME,ROLE_NAME);

        // brings logging.properties
        tomcat.setBaseDir(docBase);
        final SessionManager sessionManager = createSessionManager();


        Context context;
        try {
            context = tomcat.addWebapp(CONTEXT_PATH, docBase + fileSeparator + "webapp");
        } catch (final ServletException e) {
            throw new IllegalStateException(e);
        }

        context.setManager( sessionManager );
        context.setBackgroundProcessorDelay( 1 );
        context.setCookies(cookies);

        if ( loginType != null ) {
            context.addConstraint( createSecurityConstraint( "/*", ROLE_NAME ) );
            context.addSecurityRole( ROLE_NAME );
            final LoginConfig loginConfig = loginType == LoginType.FORM
                    ? new LoginConfig( "FORM", null, "/login", "/error" )
                    : new LoginConfig( "BASIC", null, null, null );
            context.setLoginConfig( loginConfig );
        }

        /* we must set the maxInactiveInterval after the context,
         * as setContainer(context) uses the session timeout set on the context
         */
        sessionManager.getMemcachedSessionService().setMemcachedNodes( memcachedNodes );
        sessionManager.getMemcachedSessionService().setFailoverNodes( failoverNodes );
        sessionManager.getMemcachedSessionService().setEnabled(enabled);
        sessionManager.getMemcachedSessionService().setSticky(sticky);
        if(lockingMode != null) {
            sessionManager.getMemcachedSessionService().setLockingMode(lockingMode.name());
        }
        sessionManager.getMemcachedSessionService().setMemcachedProtocol(memcachedProtocol);
        sessionManager.getMemcachedSessionService().setUsername(username);
        sessionManager.setMaxInactiveInterval( sessionTimeout ); // 1 second
        sessionManager.getMemcachedSessionService().setSessionBackupAsync( false );
        sessionManager.getMemcachedSessionService().setSessionBackupTimeout( 100 );
        sessionManager.setProcessExpiresFrequency( 1 ); // 1 second (factor for context.setBackgroundProcessorDelay)
        sessionManager.getMemcachedSessionService().setTranscoderFactoryClass( transcoderFactoryClassName != null ? transcoderFactoryClassName : DEFAULT_TRANSCODER_FACTORY );
        sessionManager.getMemcachedSessionService().setRequestUriIgnorePattern(".*\\.(png|gif|jpg|css|js|ico)$");
        sessionManager.getMemcachedSessionService().setStorageKeyPrefix(storageKeyPrefix);

        return tomcat;
    }
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.