Package org.xmlBlaster.util.property

Examples of org.xmlBlaster.util.property.PropBoolean


    */
   public PropBoolean getEnv(String key, boolean defaultValue) {
      String defaultStr = this.pluginInfoParameters.getProperty(key,""+defaultValue);
      defaultValue = Boolean.valueOf(defaultStr).booleanValue();

      PropBoolean tmp = new PropBoolean(key, defaultValue);
      if (this.pluginAttributes != null) {
         Object val = this.pluginAttributes.get(key, (String)null);
         if (val != null) {
            tmp.setValue((String)val, PropEntry.CREATED_BY_SETTER);
            return tmp;
         }
      }
      tmp.setFromEnv(this.glob, this.nodeId, context, className, this.instanceName, this.envPrefix+key);
      return tmp;
   }
View Full Code Here


      if (this.pluginInfo != null)
         this.callbackAddress.setPluginInfoParameters(this.pluginInfo.getParameters());
      this.client = client;
      this.loginName = name;

      PropBoolean tmp = callbackAddress.getEnv("singleChannel", false);
      boolean useCDATA = callbackAddress.getEnv("useCDATA", false).getValue();

      if (!tmp.getValue())
         createCallbackServer(useCDATA);
      else {
         xmlRpcUrlCallback = new XmlRpcUrl(glob, callbackAddress.getBootstrapHostname(), DEFAULT_CALLBACK_PORT, "tunneled");
         callbackAddress.setRawAddress(xmlRpcUrlCallback.getUrl()); // e.g. "http://127.168.1.1:8082/"
         ME = "XmlRpcCallbackServer-" + xmlRpcUrlCallback.getUrl();
View Full Code Here

      glob.addObjectEntry("xmlrpc-callback", this);
      log.info("Success, created XMLRPC callback server for " + loginName);
   }

   public void postInitialize() throws XmlBlasterException {
      PropBoolean tmp = callbackAddress.getEnv("singleChannel", false);
      if (tmp.getValue()) {
         xmlRpcUrlCallback = new XmlRpcUrl(glob, callbackAddress, false, DEFAULT_CALLBACK_PORT);
         singleChRunner = new CbRunner();
         singleChRunner.start();
      }
     
View Full Code Here

TOP

Related Classes of org.xmlBlaster.util.property.PropBoolean

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.