コード例 #1
0
ファイル: URIArg.java プロジェクト: tedvals/fleetmng
 /**
  * ** Adds an argument to the URI ** @param key The key name of the argument to add ** @param rtp
  * The RTP encoded values of the new key ** @return This URIArg, with the argument added
  */
 public URIArg addArg(String key, RTProperties rtp) {
   String r = (rtp != null) ? rtp.toString() : null;
   if (!StringTools.isBlank(r)) {
     return this._addArg(key, URIArg.encodeRTP(rtp), false /*encode*/, false /*obfuscate*/);
   } else {
     return this.addArg(key, "");
   }
 }
コード例 #2
0
ファイル: URIArg.java プロジェクト: tedvals/fleetmng
 /** ** RTP encodes an argument */
 public static String encodeRTP(RTProperties rtp) {
   if (rtp != null) {
     return _ens64(rtp.toString());
   }
   return null;
 }