Examples of WonderlandSession


Examples of org.jdesktop.wonderland.client.comms.WonderlandSession

      if (phoneInfo.password == null || phoneInfo.password.length() == 0) {
    locked = false;
    passwordProtected = false;
      }

      final WonderlandSession session = phoneCell.getCellCache().getSession();

      final boolean isLocked = locked;
      final boolean isPasswordProtected = passwordProtected;

      java.awt.EventQueue.invokeLater(new Runnable() {
View Full Code Here

Examples of org.jdesktop.wonderland.client.comms.WonderlandSession

    public void leftChannel(ClientChannel arg0) {
        // ignore
    }
   
    public void placeCall(CallListing listing) {
  WonderlandSession session = phoneCell.getCellCache().getSession();

  SoftphoneControlImpl sc = SoftphoneControlImpl.getInstance();

  listing.setSoftphoneCallID(sc.getCallID());
View Full Code Here

Examples of org.jdesktop.wonderland.client.comms.WonderlandSession

            channelComp.send(msg);   
  }
    }
   
    public void joinCall() {
  WonderlandSession session = phoneCell.getCellCache().getSession();

        JoinCallMessage msg = new JoinCallMessage(phoneCell.getCellID(),
      mostRecentCallListing);

        channelComp.send(msg);
View Full Code Here

Examples of org.jdesktop.wonderland.client.comms.WonderlandSession

        // Always pass in the view transform to the Cell's server state
        state.addComponentServerState(new ViewComponentServerState(viewTransform));

        // Send the message to the server
        WonderlandSession session = manager.getPrimarySession();
        CellEditChannelConnection connection = (CellEditChannelConnection)
                session.getConnection(CellEditConnectionType.CLIENT_TYPE);
        CellCreateMessage msg = new CellCreateMessage(parentCellID, state);
//        connection.send(msg);
        ResponseMessage response = null;
        try {
            response = connection.sendAndWait(msg);
View Full Code Here

Examples of org.jdesktop.wonderland.client.comms.WonderlandSession

     * <br><br>
     * Note: currently always returns true because the server doesn't send
     * any response to the cell delete message.
     */
    public static boolean deleteCell (Cell cell) {
        WonderlandSession session = cell.getCellCache().getSession();
        CellEditChannelConnection connection = (CellEditChannelConnection)
            session.getConnection(CellEditConnectionType.CLIENT_TYPE);
        CellDeleteMessage msg = new CellDeleteMessage(cell.getCellID());
        connection.send(msg);

        // TODO: there really really should be an OK/Error response from the server!

View Full Code Here

Examples of org.jdesktop.wonderland.client.comms.WonderlandSession

            return new URL(uri);
        }

        // From the cell, find out what the associated wonderland session is
        // and fetch the server host name and port from that
        WonderlandSession session = cell.getCellCache().getSession();
        ServerSessionManager manager = session.getSessionManager();
        if (manager == null) {
            logger.warning("Unable to find manager for session " + session);
            return new URL(uri);
        }
        String serverHostAndPort = manager.getServerNameAndPort();
View Full Code Here

Examples of org.jdesktop.wonderland.client.comms.WonderlandSession

        for (String compClassname : configData.getClientComponentClasses()) {
            try {
                // find the classloader associated with the server session
                // manager that loaded this cell.  That classloader will
                // have all the module classes
                WonderlandSession session = getCellCache().getSession();
                ClassLoader cl = session.getSessionManager().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

Examples of org.jdesktop.wonderland.client.comms.WonderlandSession

        if (ar != null) {
            AdminRegistration.unregister(ar, sce.getServletContext());
        }

        // log out of any connected sessions
        WonderlandSession session = (WonderlandSession)
                context.getAttribute(SESSION_ATTR);
        if (session != null) {
            session.logout();
        }
    }
View Full Code Here

Examples of org.jdesktop.wonderland.client.comms.WonderlandSession

    public void serverStarted(DarkstarRunner runner,
                              ServerSessionManager mgr)
    {
        try {
            WonderlandSession session = mgr.createSession();
            context.setAttribute(SESSION_ATTR, session);

            SecurityCacheConnection conn = new SecurityCacheConnection();
            session.connect(conn);
            context.setAttribute(SECURITY_CACHE_CONN_ATTR, conn);
        } catch (ConnectionFailureException ex) {
            logger.log(Level.SEVERE, null, ex);
        } catch (LoginFailureException ex) {
            logger.log(Level.WARNING, "Login failed");
View Full Code Here

Examples of org.jdesktop.wonderland.client.comms.WonderlandSession

       
        // register with the admininstration page
        AdminRegistration.unregister(ar, context);

        // log out of any connected sessions
        WonderlandSession session = (WonderlandSession)context.getAttribute(SESSION_ATTR);
        if (session != null) {
            session.logout();
        }
    }
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.