NAME

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

SYNOPSIS

 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

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

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

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

Copyright (c) 2002,2003 IBM Corporation. All rights reserved. This program and the accompanying materials are made available under the terms of the Common Public License v1.0 which accompanies this distribution, and is available at http://www.opensource.org/licenses/cpl.php