Re: [Nutch-cvs] svn commit: r414681 - /lucene/nutch/trunk/src/java/org/apache/nutch/protocol/ProtocolFactory.java

2006-06-18 Thread Sami Siren
+ + if (conf.getObject(protocolName) != null) { +return (Protocol) conf.getObject(protocolName); + } else { +Extension extension = findExtension(protocolName); +if (extension == null) { + throw new ProtocolNotFound(protocolName); +} I'm

Re: [Nutch-cvs] svn commit: r414681 - /lucene/nutch/trunk/src/java/org/apache/nutch/protocol/ProtocolFactory.java

2006-06-16 Thread Jérôme Charron
I'm somewhat worried about the possible clash in the conf name-space - usually, when we store Object's in Configuration instance, we use their full class name, or at least a long and most probably unique string. In this case, we use just http, https, ftp, file and so on ... Would it make sense if