Examples of RoomClient


Examples of org.openmeetings.app.persistence.beans.recording.RoomClient

  public synchronized RoomClient addClientListItem(String streamId, String scopeName,
      Integer remotePort, String remoteAddress, String swfUrl){
    try {
     
      //Store the Connection into a bean and add it to the HashMap
      RoomClient rcm = new RoomClient();
      rcm.setConnectedSince(new Date());
      rcm.setStreamid(streamId);
      rcm.setScope(scopeName);
      long thistime = new Date().getTime();
      rcm.setPublicSID(ManageCryptStyle.getInstance().getInstanceOfCrypt().createPassPhrase(
            String.valueOf(thistime).toString()));
     
      rcm.setUserport(remotePort);
      rcm.setUserip(remoteAddress);
      rcm.setSwfurl(swfUrl);     
      rcm.setIsMod(new Boolean(false));
      rcm.setCanDraw(new Boolean(false));
     
      if (clientList.containsKey(streamId)){
        log.error("Tried to add an existing Client "+streamId);
        return null;
      }
     
      clientList.put(rcm.getStreamid(),rcm);
     
      //log.error(" :: addClientListItem :: "+clientList.size());
     
      return rcm;
    } catch (Exception err) {
View Full Code Here

Examples of org.openmeetings.app.persistence.beans.recording.RoomClient

  }
 
  public synchronized RoomClient getClientByPublicSID(String publicSID) {
    try {
      for (Iterator<String> iter = clientList.keySet().iterator();iter.hasNext();) {
        RoomClient rcl = clientList.get(iter.next());
        if (rcl.getPublicSID().equals(publicSID)) {
          return rcl;
        }
      }
    } catch (Exception err) {
      log.error("[getClientByPublicSID]",err);
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.