Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SRU::Server(3)	      User Contributed Perl Documentation	SRU::Server(3)

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>

       o   Jakob Voss <voss@gbv.de>

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.

perl v5.32.0			  2013-10-18			SRU::Server(3)

NAME | SYNOPSIS | DESCRIPTION | METHODS | CGI::APPLICATION METHODS | AUTHORS | COPYRIGHT AND LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=SRU::Server&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help