Update of /cvsroot/nutch/nutch/src/java/net/nutch/net/protocols/ftp
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2281/src/java/net/nutch/net/protocols/ftp
Modified Files:
FtpResponse.java
Log Message:
Added a new command, crawl, that constructs a database, injects a url
file and performs a few rounds of generate/fetch/updatedb. This
simplifies use for intranet sites. Changed some defaults to be
more intranet friendly.
Also fixed a bug where Fetcher.java didn't construct correct relative links
when a page was redirected.
Index: FtpResponse.java
===================================================================
RCS file: /cvsroot/nutch/nutch/src/java/net/nutch/net/protocols/ftp/FtpResponse.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** FtpResponse.java 13 Feb 2004 19:53:49 -0000 1.1
--- FtpResponse.java 21 Apr 2004 22:52:21 -0000 1.2
***************
*** 27,30 ****
--- 27,31 ----
/** An FTP response */
public class FtpResponse implements Response {
+ private URL url;
private final Ftp ftp;
private int code;
***************
*** 40,43 ****
--- 41,46 ----
new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US);
+ public URL getUrl() { return url; }
+
/** Returns the response code. */
public int getCode() { return code; }
***************
*** 77,80 ****
--- 80,84 ----
throws IOException, HttpException {
+ this.url = url;
this.httpAccounting= httpAccounting;
this.ftp = ftp;
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nutch-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nutch-cvs