SRU::Response(3pm)

SRU::Response3pm

A factory for creating sru response objects

Usage

    my $request = SRU::Request->newFromURI( $uri );
    my $response = SRU::Response->newFromRequest( $request );

Overview

SRU::Response provides a mechanism for creating the appropriate response object based on a request that is passed in. For example, if you pass in a SRU::Request::Scan object you'll get back a SRU::Response::Scan object with some of the particulars filled in.

Methods

newFromRequest()

The factory method which you must pass in a valid request object: SRU::Request::Explain, SRU::Request::Scan or SRU::Request::SearchRetrieve. If you fail to pass in the correct object you will be returned undef, with an appropriate error stored in $SRU::Error.

Inherited methods

SRU::Resonse also serves as the base class for the three response types, and thus provides some general functionality to the child classes.

type()

Returns 'searchRetrieve', 'scan' or 'explain' depending on what type of object it is.

addDiagnostic()

diagnosticsXML()

stylesheetXML()

Releases

7 releases since Debian 7 (Wheezy); the text changed 4 times.

  1. 7
  2. 8
  3. 9–10
  4. 11
  5. 12–13

From libsru-perl 1.01-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.