Пример #1
0
 String srvUrlStem(String host) {
   if (host == null) {
     return null;
   }
   StringBuilder sb = new StringBuilder();
   sb.append(reqURL.getProtocol());
   sb.append("://");
   sb.append(host);
   sb.append(':');
   sb.append(reqURL.getPort());
   return sb.toString();
 }
Пример #2
0
 String srvURL(PeerIdentity peer, ServletDescr d, String params) {
   return srvURLFromStem(peer.getUiUrlStem(reqURL.getPort()), d, params);
 }
Пример #3
0
 String getRequestHost() {
   return reqURL.getHost();
 }