API:EPrints/Apache/LogHandler

From EPrints Documentation
Jump to: navigation, search

EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects


API: Core API

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

User Comments


DESCRIPTION

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

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

User Comments


DATA FORMAT

User Comments


requester

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

User Comments


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).

User Comments


referent, referringEntity

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

User Comments


referent_docid

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

User Comments


METHODS

User Comments


Class Methods

User Comments


eprints_apache_loghandler_handler

EPrints:Apache::LogHandler::handler

Empty (as deprecated) handler method.

User Comments


is_robot

EPrints:Apache::LogHandler::is_robot( $r, $ip )

Test if request $r is a robot based on User-Agent or if $ip is listed as a robot.

Returns a boolean dependent or whether request has determined to be a robot.

User Comments


Object Methods

User Comments


document

$handler->document( $r )

A request on a document.

User Comments


eprint

$handler->eprint( $r )

A request on an eprint abstract page.

User Comments


SEE ALSO

EPrints::DataObj::Access

User Comments


COPYRIGHT

© Copyright 2023 University of Southampton.

EPrints 3.4 is supplied by EPrints Services.

http://www.eprints.org/eprints-3.4/

LICENSE

This file is part of EPrints 3.4 http://www.eprints.org/.

EPrints 3.4 and this file are released under the terms of the GNU Lesser General Public License version 3 as published by the Free Software Foundation unless otherwise stated.

EPrints 3.4 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with EPrints 3.4. If not, see http://www.gnu.org/licenses/.

User Comments