org.apache.nutch.protocol
Class ProtocolFactory

java.lang.Object
  extended byorg.apache.nutch.protocol.ProtocolFactory

public class ProtocolFactory
extends Object

Creates and caches Protocol plugins. Protocol plugins should define the attribute "protocolName" with the name of the protocol that they implement.


Field Summary
static Logger LOG
           
 
Method Summary
static Protocol getProtocol(String urlString)
          Returns the appropriate Protocol implementation for a url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final Logger LOG
Method Detail

getProtocol

public static Protocol getProtocol(String urlString)
                            throws ProtocolNotFound
Returns the appropriate Protocol implementation for a url.

Throws:
ProtocolNotFound


Copyright © 2006 The Apache Software Foundation