Пример #1
0
 @Override
 public String getScheme() {
   URLProtoOrBuilder p = viaProto ? proto : builder;
   if (!p.hasScheme()) {
     return null;
   }
   return (p.getScheme());
 }
Пример #2
0
 @Override
 public int getPort() {
   URLProtoOrBuilder p = viaProto ? proto : builder;
   return (p.getPort());
 }