org.apache.nutch.protocol
Interface Protocol

All Known Implementing Classes:
File, Ftp, Http, Http

public interface Protocol

A retriever of url content. Implemented by protocol extensions.


Field Summary
static String X_POINT_ID
          The name of the extension point.
 
Method Summary
 ProtocolOutput getProtocolOutput(FetchListEntry fle)
          Returns the Content for a fetchlist entry.
 ProtocolOutput getProtocolOutput(String url)
          Returns the Content for a url.
 

Field Detail

X_POINT_ID

public static final String X_POINT_ID
The name of the extension point.

Method Detail

getProtocolOutput

public ProtocolOutput getProtocolOutput(String url)
Returns the Content for a url. This method may be more limited than getProtocolOutput(FetchListEntry).

Throws:
IOException - for any errors.

getProtocolOutput

public ProtocolOutput getProtocolOutput(FetchListEntry fle)
Returns the Content for a fetchlist entry.

Throws:
IOException - for any errors.


Copyright © 2006 The Apache Software Foundation