Package org.jdesktop.wonderland.client.login

Examples of org.jdesktop.wonderland.client.login.ServerSessionManager


     * @param The system-wide ContentCollection for the current primary session
     */
    private static ContentCollection getSystemContentRepository()
            throws ContentRepositoryException {

        ServerSessionManager session = LoginManager.getPrimary();
        ContentRepositoryRegistry registry = ContentRepositoryRegistry.getInstance();
        return registry.getRepository(session).getSystemRoot();
    }
View Full Code Here


        }

        // Formulate the base URL for all IMI avatar assets
        String baseURL = null;
        try {
            ServerSessionManager manager = avatarCell.getCellCache().getSession().getSessionManager();
            String serverHostAndPort = manager.getServerNameAndPort();
            URL tmpURL = AssetUtils.getAssetURL("wla://avatarbaseart/", serverHostAndPort);
            baseURL = tmpURL.toExternalForm();
        } catch (MalformedURLException ex) {
            logger.log(Level.WARNING, "Unable to form base url", ex);
            return null;
View Full Code Here

     */
    protected void fireServerStarted(DarkstarRunnerImpl runner) {

        try {
            // XXX TODO: Make server-specific
            ServerSessionManager sessionManager =
                LoginManager.getSessionManager(ServerInfo.getInternalServerURL());

            // add to session map
            synchronized (sessions) {
                sessions.put(runner, sessionManager);
View Full Code Here

    public void cleanup() {
        // XXX should be done in deactivate XXX
        WorldManager worldManager = ClientContextJME.getWorldManager();
        worldManager.removeUserData(Repository.class);

        ServerSessionManager manager = getSessionManager();
        ClientContextJME.getAvatarRenderManager().unregisterRenderer(manager);
       
        super.cleanup();
    }
View Full Code Here

    @Override
    protected void activate() {
        // Upon a new session, load the session and put it in the map. Wait
        // for it to finish loading. When done then set up the view Cell or
        // wait for it to finish.
        ServerSessionManager manager = getSessionManager();
        AvatarSessionLoader loader = new AvatarSessionLoader(manager);
        loaderMap.put(manager, loader);
        loader.addAvatarLoaderStateListener(this);
        loader.load();
View Full Code Here

        // we tell the avatar cell component to set it's avatar in use.
        AvatarConfigComponent configComponent = viewCell.getComponent(AvatarConfigComponent.class);
        AvatarRegistry registry = AvatarRegistry.getAvatarRegistry();
        AvatarSPI avatar = registry.getAvatarInUse();
        if (avatar != null) {
            ServerSessionManager session = viewCell.getCellCache().getSession().getSessionManager();
            AvatarConfigInfo configInfo = avatar.getAvatarConfigInfo(session);
            configComponent.requestAvatarConfigInfo(configInfo, isLocal);
        }
    }
View Full Code Here

        try {
            // find the classloader associated with the server session
            // manager that loaded this cell.  That classloader will
            // have all the module classes
            WonderlandSession session = cell.getCellCache().getSession();
            ServerSessionManager ssm = session.getSessionManager();
            ClassLoader cl = ssm.getClassloader();

            // us the classloader we found to load the component class
            Class compClazz = cl.loadClass(compClassname);

            // Find out the Class used to lookup the component in the list
View Full Code Here

        // find the classloader associated with the server session
        // manager that loaded this cell.  That classloader will
        // have all the module classes
        WonderlandSession session = cell.getCellCache().getSession();
        ServerSessionManager ssm = session.getSessionManager();
        ClassLoader cl = ssm.getClassloader();

        // Find the class associated with the client component and remove it
        try {
            // us the classloader we found to load the component class
            Class compClazz = cl.loadClass(className);
View Full Code Here

        if (menuItem == null) {
            menuItem = new JMenuItem(
                    new AbstractAction(BUNDLE.getString("Groups...")) {
                        public void actionPerformed(ActionEvent e) {
                            if (gmf == null) {
                                ServerSessionManager manager =
                                        getSessionManager();
                                gmf = new GroupManagerFrame(
                                        manager.getServerURL(),
                                        manager.getCredentialManager());
                            }

                            gmf.setVisible(true);
                        }
                    });
View Full Code Here

        // if the username is not null, set up authentication
        if (username != null && username.length() > 0 &&
                password != null && password.length() > 0)
        {
            ServerSessionManager ssm = LoginManager.getSessionManager(serverUrl.toString());
            ServerDetails details = ssm.getDetails();

            AuthenticationInfo info = details.getAuthInfo().clone();

            // if the type is EITHER, we choose to login with authentication,
            // since guest logins won't be allowed without authentication
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.login.ServerSessionManager

Copyright © 2018 www.massapicom. 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.