Пример #1
0
 /**
  * ** Returns true if the specified key is not to be included in the 'defined propertes' section
  * ** @param key The property key to test ** @return true to omit the specified property from the
  * 'defined properties' section
  */
 protected boolean _skipPropKey(Object key) {
   String ks = key.toString();
   for (int i = 0; i < SKIP_PROPS.length; i++) {
     String propKey[] = (String[]) SKIP_PROPS[i];
     if (ListTools.contains(propKey, ks)) {
       return true;
     }
   }
   return false;
 }
Пример #2
0
 /**
  * ** Returns a new URIArg with this URIArg's arguments encoded into a ** single RTProperties
  * added with a specified key [CHECK] ** @param rtpKey The key to add the encoded args at
  * ** @param exclKeys keys to exclude from encoding ** @return A new URIArg with non excluded
  * arguments encoded
  */
 public URIArg rtpEncode(String rtpKey, String... exclKeys) {
   URIArg rtpUrl = new URIArg(this.getURI());
   RTProperties rtp = new RTProperties();
   for (KeyVal kv : this.getKeyValList()) {
     String kn = kv.getKey();
     if (ListTools.contains(exclKeys, kn)) {
       rtpUrl.addArg(kv);
     } else {
       rtp.setString(kn, kv.getValue());
     }
   }
   rtpUrl.addArg(rtpKey, rtp);
   return rtpUrl;
 }