NAME
HTTP::OAI::Header - Encapsulates an OAI header structure
SYNOPSIS
use HTTP::OAI::Header;
my $h = new HTTP::OAI::Header(
identifier=>'oai:myarchive.org:2233-add',
datestamp=>'2002-04-12T20:31:00Z',
);
$h->setSpec('all:novels');
METHODS
- $id = new HTTP::OAI::Header
-
This constructor method returns a new HTTP::OAI::Header object.
- $idstring = $id->identifier([$idstring])
-
Returns and optionally sets the identifier string.
- $ds = $id->datestamp([$datestamp])
-
Returns and optionally sets the datestamp (OAI 2.0 only).
- $status = $id->status([$status])
-
Returns and optionally sets the status. Status is defined by the OAI protocol to be undef or 'deleted'.
- @sets = $id->setSpec([$setSpec])
-
Returns the list of setSpecs and optionally appends a new setSpec, $setSpec (OAI 2.0 only).
- $dom_fragment = $id->generate()
-
Act as a SAX driver (use $id->set_handler() to specify the filter to pass events to).