| Bio::Phylo::PhyloWS::Service::Tolweb - PhyloWS service wrapper for Tree of Life |
Bio::Phylo::PhyloWS::Service::Tolweb - PhyloWS service wrapper for Tree of Life
# inside a CGI script: use CGI; use Bio::Phylo::PhyloWS::Service::Tolweb;
my $cgi = CGI->new; my $service = Bio::Phylo::PhyloWS::Service::Tolweb->new( '-url' => $url ); $service->handle_request($cgi);
This is an example implementation of a PhyloWS service. The service wraps around the tree of life XML service and returns project objects that include the focal node (identified by its PhyloWS ID) and the nearest child and parent nodes that have web pages.
get_record()
Gets a tolweb record by its id
Type : Accessor Title : get_record Usage : my $record = $obj->get_record( -guid => $guid ); Function: Gets a tolweb record by its id Returns : Bio::Phylo::Project Args : Required: -guid => $guid Comments: The guid is of the form 'tree/Tolweb:\d+'
get_redirect()
Gets a redirect URL if relevant
Type : Accessor Title : get_redirect Usage : my $url = $obj->get_redirect; Function: Gets a redirect URL if relevant Returns : String Args : $cgi Comments: This method is called by handle_request so that services can 303 redirect a record lookup to another URL. By default, this method returns undef (i.e. no redirect), but if this implementation is called to handle a request that specifies 'format=html' the request is forwarded to the appropriate page on the http://tolweb.org website
Also see the manual: the Bio::Phylo::Manual manpage and http://rutgervos.blogspot.com
$Id: Phylo.pm 1045 2009-05-28 22:48:16Z rvos $
| Bio::Phylo::PhyloWS::Service::Tolweb - PhyloWS service wrapper for Tree of Life |