Esempio n. 1
0
 /**
  * Allow users to add to the default rc
  *
  * @param key
  * @param value
  * @param url null => not url specific
  */
 public static synchronized void add(String key, String value, String url) {
   if (key == null) return;
   if (!initialized) RC.initialize();
   Triple t = new Triple(key, value, url);
   dfaltRC.insert(t);
   // recompute well-knowns
   setWellKnown();
 }
Esempio n. 2
0
 public static synchronized void initialize() {
   if (!initialized) {
     initialized = true;
     RC.loadDefaults();
     RC.setWellKnown();
     RC.loadFromJava();
   }
 }