SRU::Request(3pm) User Contributed Perl Documentation SRU::Request(3pm)NAME
SRU::Request - Factories for creating SRU request objects.
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
newFromURI()
newFromURI() is a factory method which you pass a complete SRU url. newFromURI() will return an appropriate object for the type of request
being conducted:
o SRU::Request::Explain
o SRU::Request::Scan
o SRU::Request::SearchRetrieve
If the request is not formatted properly the call will return undef. The error encountered should be available in $SRU::Error.
newFromCGI()
A factory method for creating a request object from a CGI object.
my $cgi = CGI->new();
my $request = SRU::Request->newFromCGI( $cgi );
asXML()
Used to generate <echoedExplainRequest>, <echoedSearchRetrieveRequest> and <echoedScanRequest> elements in the response.
type()
Returns 'searchRetrieve', 'scan' or 'explain' depending on what type of object it is.
perl v5.12.4 2009-11-20 SRU::Request(3pm)
Check Out this Related Man Page
SRU::Server(3pm) User Contributed Perl Documentation SRU::Server(3pm)NAME
SRU::Server - respond to SRU requests via CGI::Application
SYNOPSIS
package MySRU;
use base qw( SRU::Server );
sub explain {
my $self = shift;
# $self->request isa SRU::Request::Explain
# $self->response isa SRU::Response::Explain
}
sub scan {
my $self = shift;
# $self->request isa SRU::Request::Scan
# $self->response isa SRU::Response::Scan
# $self->cql is the root node of a CQL::Parser-parsed query
}
sub searchRetrieve {
my $self = shift;
# $self->request isa SRU::Request::SearchRetrieve
# $self->response isa SRU::Response::SearchRetrieve
# $self->cql is the root node of a CQL::Parser-parsed query
}
package main;
MySRU->new->run;
DESCRIPTION
This module brings together all of the SRU verbs (explain, scan and searchRetrieve) under a sub-classable object based on CGI::Application.
METHODS
explain
This method is used to return an explain response. It is the default method.
scan
This method returns a scan response.
searchRetrieve
This method returns a searchRetrieve response.
CGI ::APPLICATION METHODS
setup
Sets the "run_modes", "mode_param" and the default runmode (explain).
cgiapp_prerun
Parses the incoming SRU request and if needed, checks the CQL query.
cgiapp_postrun
Sets the content type (text/xml) and serializes the response.
error_mode
Stub error runmode.
AUTHORS
o Brian Cassidy <bricas@cpan.org>
o Ed Summers <ehs@pobox.com>
perl v5.12.4 2009-11-20 SRU::Server(3pm)
my desired output is like this:
so the thing is, I only need to show every of this part out
but the frequency of that data is not fixed, so sometimes it may have 4 lines, or 6 lines or whatever in that file. However, the last line will always have empty space/line below it. (13 Replies)
Thanks to this forum I have managed to work out a solution to my problem and actually understand most of it, but one thing is confusing me and I am sure someone here can explain.
I need to insert a piece of txt into a file. This txt is
awk '{ sub(/$/,"\r"); print }' $JCL_WBB50103_EFTOUT >... (2 Replies)
I need to change the ip address in RHEL 6 . Please tell me the files to be edited....complete procedure.......... Don't tell the graphical method ........ Explain everything in CLI ...........
Thanks in Advance:b: (3 Replies)
Below is the line
GMDCOM.27936 : Process Request <36812974>
i want to display : Process Request <36812974>
in a new file using shell script.
Please help me. Its very urgent. (1 Reply)
Discussion started by: ghosh_tanmoy
1 Replies
9. Forum Support Area for Unregistered Users & Account Problems
Hello
Myself Ravi, ex-member of your forum.
I would request if my ID can be enabled which got disabled a few months back.
That time our mood may be that that you had taken the step but I think it shouldn't be hard for you to accept my request to enable it again.
My email is mentioned in my... (1 Reply)
Currently we are having solaris 11.1 SRU 11.1.21.4.1 installed on server. We need to upgrade it to solaris 11.2 SRU 11.2.9.5.0
Is it possible to upgrade to SRU 11.2.9.50 directly by downloading repo files or do I need to upgrade to 11.2 first and then upgrade to SRU 11.2.9.5.0? (1 Reply)
tldr; after SRU patches applied on newly created boot environment, reboot with ability to log into global zone but unable to "fully" log into non-global-zones.
Without going into much detail here's what we did;
1) Activated new boot environment with latest SRU patches from Oracle
2)... (1 Reply)
Hi
During a host review session I was told to check if the engineers have been updating Solaris 11 OS regularly by verifying the SRU version of the system.
However i was having no luck in finding the latest SRU version number in oracle website for hours. I wonder did anyone here know where i... (4 Replies)