org.apache.nutch.protocol.ftp
Class Ftp

java.lang.Object
  extended byorg.apache.nutch.protocol.ftp.Ftp
All Implemented Interfaces:
Protocol

public class Ftp
extends Object
implements Protocol

Ftp.java deals with ftp: scheme. Configurable parameters are defined under "FTP properties" section in ./conf/nutch-default.xml or similar.

Author:
John Xing

Field Summary
static Logger LOG
           
 
Fields inherited from interface org.apache.nutch.protocol.Protocol
X_POINT_ID
 
Constructor Summary
Ftp()
           
 
Method Summary
protected  void finalize()
           
 ProtocolOutput getProtocolOutput(FetchListEntry fle)
          Returns the Content for a fetchlist entry.
 ProtocolOutput getProtocolOutput(String urlString)
          Returns the Content for a url.
static void main(String[] args)
          For debugging.
 void setFollowTalk(boolean followTalk)
          Set followTalk
 void setKeepConnection(boolean keepConnection)
          Set keepConnection
 void setMaxContentLength(int length)
          Set the point at which content is truncated.
 void setTimeout(int to)
          Set the timeout.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final Logger LOG
Constructor Detail

Ftp

public Ftp()
Method Detail

setTimeout

public void setTimeout(int to)
Set the timeout.


setMaxContentLength

public void setMaxContentLength(int length)
Set the point at which content is truncated.


setFollowTalk

public void setFollowTalk(boolean followTalk)
Set followTalk


setKeepConnection

public void setKeepConnection(boolean keepConnection)
Set keepConnection


getProtocolOutput

public ProtocolOutput getProtocolOutput(String urlString)
Description copied from interface: Protocol
Returns the Content for a url. This method may be more limited than Protocol.getProtocolOutput(FetchListEntry).

Specified by:
getProtocolOutput in interface Protocol

getProtocolOutput

public ProtocolOutput getProtocolOutput(FetchListEntry fle)
Description copied from interface: Protocol
Returns the Content for a fetchlist entry.

Specified by:
getProtocolOutput in interface Protocol

finalize

protected void finalize()

main

public static void main(String[] args)
                 throws Exception
For debugging.

Throws:
Exception


Copyright © 2006 The Apache Software Foundation