Package org.xmlBlaster.contrib

Examples of org.xmlBlaster.contrib.ClientPropertiesInfo


            size = this.remoteProperties.getClientPropertyMap().size();
         this.remoteProperties = null;
         return size;
      }
     
      ClientPropertiesInfo info = this.remoteProperties;
      if (info == null || prefix == null) return 0;
      ClientProperty[] arr = info.getClientPropertyArr();
      int count = 0;
      for (int i=0; i<arr.length; i++) {
         if (arr[i].getName().startsWith(prefix)) {
            info.getClientPropertyMap().remove(arr[i].getName());
            count++;
         }
      }
      return count;
   }
View Full Code Here


    * The key is of type String and the value of type ClientProperty
    */
   public synchronized void mergeRemoteProperties(Map map) {
      if (map == null || map.size() == 0) return;
      if (this.remoteProperties == null) {
          this.remoteProperties = new ClientPropertiesInfo(new HashMap());
          /*// Changed 2007-06-29 marcel: we now take a clone
         this.remoteProperties = new ClientPropertiesInfo(map);
         // remove, is only a hint:
         this.remoteProperties.put(Constants.CLIENTPROPERTY_REMOTEPROPERTIES, (ClientProperty)null);
         return;
View Full Code Here

    * @return The old ClientProperty if existed, else null
    * @see <a href="http://www.xmlBlaster.org/xmlBlaster/doc/requirements/admin.events.html">The admin.events requirement</a>
    */
   public synchronized ClientProperty addRemoteProperty(String key, String value) {
      if (this.remoteProperties == null)
         this.remoteProperties = new ClientPropertiesInfo(null);
      ClientProperty old = (ClientProperty)this.remoteProperties.getClientPropertyMap().get(key);
      this.remoteProperties.put(key, value);
      return old;
   }
View Full Code Here

TOP

Related Classes of org.xmlBlaster.contrib.ClientPropertiesInfo

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.