KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > nutch > protocol > Protocol


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 JavaDoc;
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 JavaDoc 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 JavaDoc url) throws ProtocolException;
17 }
18
Popular Tags