GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SRU::REQUEST (3)

.ds Aq ’

NAME

SRU::Request - Factories for creating SRU request objects.

CONTENTS

SYNOPSIS



    use SRU::Request;
    my $request = SRU::Request->newFromURI( $uri );



DESCRIPTION

SRU::Request allows you to create the appropriate SRU request object from a URI object. This allows you to pass in a URI and get back one of SRU::Request::Explain, SRU::Request::Scan or SRU::Request::SearchRetrieve depending on the type of URI that is passed in. See the docs for those classes for more information about what they contain.

METHODS

new( CW%query | CW$uri | CW$cgi | CW$env )

Create a new request object which is one of:
o SRU::Request::Explain
o SRU::Request::Scan
o SRU::Request::SearchRetrieve
One can pass query parameters as hash, as URL, as URI, as CGI object or as PSGI request.

If the request is not formatted properly the call will return undef. The error encountered should be available in $SRU::Error.

    newFromURI

    newFromCGI

Deprecated aliases for new.

asXML()

Used to generate <echoedExplainRequest>, <echoedSearchRetrieveRequest> and <echoedScanRequest> elements in the response.

asURI( [ CW$base ] )

Creates a URI of this request. The optional base URL, provided as string or as URI, is set to http://localhost/ by default.

type()

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

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Ed Summers.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 SRU::REQUEST (3) 2013-10-18

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.