LS::Client::HTTP - Implements the HTTP protocol specific calls for invoking an LSID service


lsid-perl documentation  | view source Contained in the lsid-perl distribution.

Index


NAME

Top

LS::Client::HTTP - Implements the HTTP protocol specific calls for invoking an LSID service

SYNOPSIS

Top

 use LS::ID;
 use LS::Client::HTTP;

 $lsid = LS::ID->new('URN:LSID:pdb.org:PDB:112L:');

 $client = LS::Client::HTTP->new();

 $metadata = $client->getMetadata(url=> 'http://someauthority.org:8080/authority/metadata',
				  lsid=> $lsid);

DESCRIPTION

Top

LS::Client::HTTP provides wrapper methods to invoke an LSID service in a protocol specific manner as defined by http://www.omg.org/cgi-bin/doc?dtc/04-05-01.

CONSTRUCTORS

Top

The following method is used to construct a new LS::Client::HTTP object:

new

This class method creates a new <LS::Client::HTTP> object.

Examples:

 $http = LS::Client::HTTP->new()

 if (!$http) {
 	print STDERR "Unable to create protocol object!";
 }

METHODS

Top

LS::Client::HTTP supports the following methods:

getContent (url=> $url )

Generic method used to retrieve data from the specified URL.

getData (lsid=> $lsid, url=> $url )

Invokes the getData service method (if available) and returns any data from the authority.

getDataByRange ( lsid=> $lsid, url=> $url )

Invokes getDataByRange, see getData for more information.

getMetadata ( lsid=> $lsid, url=> $url )

Invokes getMetadata, see getData for more information.

getMetadataSubset ( lsid=> $lsid, url=> $url )

Invokes getMetadataSubset, see getData for more information.

COPYRIGHT

Top


lsid-perl documentation  | view source Contained in the lsid-perl distribution.