net.nutch.protocol.ftp
Class Ftp

java.lang.Object
  extended bynet.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 net.nutch.protocol.Protocol
X_POINT_ID
 
Constructor Summary
Ftp()
           
 
Method Summary
protected  void finalize()
           
 Content getContent(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 timeout)
          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 timeout)
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


getContent

public Content getContent(String urlString)
                   throws FtpException
Description copied from interface: Protocol
Returns the Content for a url.

Specified by:
getContent in interface Protocol
Throws:
FtpException

finalize

protected void finalize()

main

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

Throws:
Exception


Copyright © 2004 The Nutch Organization.