API:EPrints/Apache/LogHandler

From EPrints Documentation
Revision as of 18:28, 11 August 2009 by Tdb01r (talk | contribs) (New page: <!-- Pod2Wiki=_preamble_ This page has been automatically generated from the EPrints source. Any wiki changes made between the 'Pod2Wiki=*' and 'End of Pod2Wiki' comments will be lost. -...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki

NAME

EPrints::Apache::LogHandler - Main handler for Apache log events

CONFIGURATION

To enable the Apache::LogHandler add to your ArchiveConfig:

  $c->{loghandler}->{enable} = 1;
 

DATA FORMAT

requester

The requester is stored using their IP in URN format: urn:ip:x.x.x.x.

servicetype

 serviceType

ServiceType is in format info:ofi/fmt:kev:mtx:sch_svc.

The value is encoded as ?name=yes (where name is one of the services defined).

referent_referringentity

 referent, referringEntity

These are stored in URN format: info:oai:repositoryid:eprintid.

referent_docid

The document id as a fragment of the referent: #docid.

METHODS

handler

 handler REQUEST

Called by mod_perl whenever a request is made to the web server where REQUEST is an Apache Request object.

uri_to_eprintid

 $id = EPrints::Apache::LogHandler::uri_to_eprintid( $session, $uri )

Returns the eprint id that $uri corresponds to, or undef.

uri_to_docid

 $id = EPrints::Apache::LogHandler::uri_to_docid( $session, $eprintid, $uri )

Returns the docid that $uri corresponds to (given the $eprintid), or undef.

SEE ALSO

EPrints::DataObj::Access