-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed NAS-2418. Added NasCrawlMetadata class with added date field
- Loading branch information
svcarlsen
committed
Jun 3, 2015
1 parent
2839d84
commit de7d2a2
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
...ritrix3-extensions/src/main/java/dk/netarkivet/harvester/harvesting/NasCrawlMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package dk.netarkivet.harvester.harvesting; | ||
|
||
import org.archive.modules.CrawlMetadata; | ||
|
||
/** | ||
* NetarchiveSuite extension of the org.archive.modules.CrawlMetadata class. | ||
* Currently the only addition is a date field | ||
* similar to the date field in the H1 'meta' entity | ||
* | ||
<meta> | ||
<name>default_obeyrobots_withforms</name> | ||
<description>Default profile that obeys robots.txt and includes form URLs</description> | ||
<operator>Admin</operator> | ||
<organization/> | ||
<audience/> | ||
<date>20080118111217</date> | ||
</meta> | ||
*/ | ||
public class NasCrawlMetadata extends CrawlMetadata { | ||
|
||
private static final long serialVersionUID = 2505633855092991518L; | ||
private String date; | ||
|
||
public String getDate() { | ||
return this.date; | ||
} | ||
|
||
public void setDate(String date) { | ||
this.date = date; | ||
} | ||
} |