Examples of SessionManager


Examples of org.cipango.server.session.SessionManager

    private void send(boolean reliable) throws IOException
    {
        if (isCommitted())
            throw new IllegalStateException("Response is commited");
       
        SessionManager csm = getCallSession().getServer().getSessionManager();
       
        SessionScope scope = csm.openScope(getCallSession());
       
        try
        {
          _session.sendResponse(this, (ServerTransaction) getTransaction(), reliable);
            setCommitted(true);
View Full Code Here

Examples of org.cipango.server.session.SessionManager

            throw new IllegalStateException("Request is already commited");
        if (getTransaction() != null && !(getTransaction() instanceof ClientTransaction))
          throw new IllegalStateException("Can send request only in UAC mode");
      setCommitted(true);
     
      SessionManager csm = getCallSession().getServer().getSessionManager();
     
      SessionScope scope = csm.openScope(getCallSession());
      try
      {
        if (isCancel())
          ((ClientTransaction) getTransaction()).cancel(this);
        else
View Full Code Here

Examples of org.cipango.server.session.SessionManager

{
  protected abstract CallSession getCallSession();
 
  protected SessionScope openScope()
  {
    SessionManager sessionManager = getCallSession().getServer().getSessionManager();
    return sessionManager.openScope(getCallSession());
  }
View Full Code Here

Examples of org.coweb.SessionManager

    * @param sessionid Id of the session
    * @return true if the user is allowed to join the session.
    */
    public boolean canSubscribeToSession(String username, String sessionid) {
     
      SessionManager manager = SessionManager.getInstance();
      SessionHandler handler = manager.getSessionHandler(sessionid);
     
      return this.canSubscribeToSession(username,
          handler.getConfKey(),
          handler.isCollab());
    }
View Full Code Here

Examples of org.eclipse.jetty.server.SessionManager

                resource_handler.setBaseResource(Resource.newResource(environment.templateDirFile().getPath() + "/assets/"));
            } catch (IOException e) {
                e.printStackTrace();
            }
            if (settings.getAsBoolean("application.session.enable", false)) {
                SessionManager sessionManager = new HashSessionManager();
                sessionManager.setSessionIdPathParameterName("none");
                handlers.setHandlers(new Handler[]{resource_handler, new SessionHandler(sessionManager), new DefaultHandler()});
            } else {
                handlers.setHandlers(new Handler[]{resource_handler, new DefaultHandler()});
            }
View Full Code Here

Examples of org.eclipse.jetty.server.SessionManager

        root.addServlet(new ServletHolder(new FileServlet()), "*.xsl");
        root.addServlet(new ServletHolder(new HelperServlet()), "/rest/helper");
        root.addServlet(new ServletHolder(new LogFileListingServlet()), "/rest/logfilenames");
        root.addServlet(new ServletHolder(new LogFileServlet()), "/rest/logfile");

        final SessionManager sessionManager = root.getSessionHandler().getSessionManager();
        sessionManager.setSessionCookie(JSESSIONID_COOKIE_PREFIX + lastPort);
        sessionManager.setMaxInactiveInterval((Integer)getAttribute(TIME_OUT));

        return server;
    }
View Full Code Here

Examples of org.eclipse.jetty.server.SessionManager

        connector.setStatsOn(this.config.isRegisterMBeans());
    }

    private void configureSessionManager(final ServletContextHandler context)
    {
        final SessionManager manager = context.getSessionHandler().getSessionManager();

        manager.setMaxInactiveInterval(this.config.getSessionTimeout() * 60);
        manager.setSessionIdPathParameterName(this.config.getProperty(SessionManager.__SessionIdPathParameterNameProperty, SessionManager.__DefaultSessionIdPathParameterName));
        manager.setCheckingRemoteSessionIdEncoding(this.config.getBooleanProperty(SessionManager.__CheckRemoteSessionEncoding, true));
        manager.setSessionTrackingModes(Collections.singleton(SessionTrackingMode.COOKIE)); // XXX

        SessionCookieConfig cookieConfig = manager.getSessionCookieConfig();
        cookieConfig.setName(this.config.getProperty(SessionManager.__SessionCookieProperty, SessionManager.__DefaultSessionCookie));
        cookieConfig.setDomain(this.config.getProperty(SessionManager.__SessionDomainProperty, SessionManager.__DefaultSessionDomain));
        cookieConfig.setPath(this.config.getProperty(SessionManager.__SessionPathProperty, context.getContextPath()));
        cookieConfig.setMaxAge(this.config.getIntProperty(SessionManager.__MaxAgeProperty, -1));
    }
View Full Code Here

Examples of org.eclipse.jetty.server.SessionManager

        root.addServlet(new ServletHolder(FileServlet.INSTANCE), "*.jpeg");
        root.addServlet(new ServletHolder(FileServlet.INSTANCE), "*.json");
        root.addServlet(new ServletHolder(FileServlet.INSTANCE), "*.txt");
        root.addServlet(new ServletHolder(FileServlet.INSTANCE), "*.xsl");

        final SessionManager sessionManager = root.getSessionHandler().getSessionManager();

        sessionManager.setMaxInactiveInterval(_sessionTimeout);

        return server;
    }
View Full Code Here

Examples of org.eclipse.jetty.server.SessionManager

        root.addServlet(new ServletHolder(FileServlet.INSTANCE), "*.jpeg");
        root.addServlet(new ServletHolder(FileServlet.INSTANCE), "*.json");
        root.addServlet(new ServletHolder(FileServlet.INSTANCE), "*.txt");
        root.addServlet(new ServletHolder(FileServlet.INSTANCE), "*.xsl");

        final SessionManager sessionManager = root.getSessionHandler().getSessionManager();

        sessionManager.setMaxInactiveInterval(60 * 15);

        return server;
    }
View Full Code Here

Examples of org.eclipse.persistence.sessions.factories.SessionManager

     */
    @SuppressWarnings("unchecked")
    public void buildSessions() {

        ClassLoader projectLoader = new BaseEntityClassLoader(parentClassLoader);
        SessionManager sessionManager = SessionManager.getManager();
        boolean found = false;
        String sessionsFile =
            xrService.sessionsFile == null ? DBWS_SESSIONS_XML : xrService.sessionsFile;
        for (String prefix : META_INF_PATHS) {
            String searchPath = prefix + sessionsFile;
            XRSessionConfigLoader loader = new XRSessionConfigLoader(searchPath);
            loader.setShouldLogin(false);
            try {
                found = loader.load(sessionManager, projectLoader);
            }
            catch (RuntimeException e) { /* ignore */
            }
            if (found) {
                break;
            }
        }
        if (!found) {
            throw DBWSException.couldNotLocateFile(DBWS_SESSIONS_XML);
        }
        Map sessions = sessionManager.getSessions();
        String orSessionKey = xrService.name + "-" + DBWS_OR_SESSION_NAME_SUFFIX;
        if (sessions.containsKey(orSessionKey)) {
            xrService.orSession = (Session)sessions.get(orSessionKey);
        }
        else {
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.