1 /* Copyright (c) 2004 The Nutch Organization. All rights reserved. */ 2 /* Use subject to the conditions in http://www.nutch.org/LICENSE.txt. */ 3 4 package net.nutch.protocol; 5 6 import java.io.IOException; 7 8 /** A retriever of url content. Implemented by protocol extensions. */ 9 public interface Protocol { 10 /** The name of the extension point. */ 11 public final static String X_POINT_ID = Protocol.class.getName(); 12 13 /** Returns the {@link Content} for a url. 14 * @throws IOException for any errors. 15 */ 16 Content getContent(String url) throws ProtocolException; 17 } 18