Exemplo n.º 1
0
 public static TransportProtocol protocolFor(URIish uri) {
   for (TransportProtocol p : getTransportProtocols()) {
     if (p.canHandle(uri)) return p;
   }
   return null;
 }
  private boolean canHandleProtocol(URIish u) {
    for (TransportProtocol proto : Transport.getTransportProtocols())
      if (proto.canHandle(u)) return true;

    return false;
  }