Bio-Das-ProServer
view release on metacpan or search on metacpan
lib/Bio/Das/ProServer/Config.pm view on Meta::CPAN
Useful for setting the baseuri (i.e. preceeding /das) in XML/HTML responses when behind a reverse-proxy.
my $sResponse_Baseuri = $cfg->response_baseuri();
=head2 server_url - helper method for constructing a fully-qualified URL for the server
Useful for setting the full server URL in XML/HTML responses when behind a reverse-proxy.
my $sServer_url = $cfg->server_url();
=head2 interface - get accessor configured interface
my $sInterface = $cfg->interface();
=head2 adaptors - Build all known Bio::Das::ProServer::SourceAdaptors (including those Hydra-based)
my @aAdaptors = $oConfig->adaptors();
Note this can be an expensive call if lots of sources or large hydra sets are configured.
=head2 adaptor - Build a SourceAdaptor given a dsn (may be a hydra-based adaptor)
my $oSourceAdaptor = $oConfig->adaptor($sWantedDSN);
=head2 knows - Is a requested dsn known about?
my $bDSNIsKnown = $oConfig->knows($sWantedDSN);
=head2 das_version - Server-supported das version
my $sVersion = $oConfig->das_version();
By default 'DAS/1.53E';
=head2 server_version - Server release version
my $sVersion = $oConfig->server_version();
By default 'ProServer/2.7';
=head2 hydra_adaptor - Build a hydra-based SourceAdaptor given dsn and optional hydraname
my $oAdaptor = $oConfig->hydra_adaptor($sWantedDSN, $sHydraName); # fast
my $oAdaptor = $oConfig->hydra_adaptor($sWantedDSN); # slow, performs a full scan of any configured hydras
=head2 hydra - Build SourceHydra for a given dsn/hydraname
my $oHydra = $oConfig->hydra($sHydraName);
=head2 log - log to STDERR with timestamp
$oConfig->log('a message');
=head1 DIAGNOSTICS
=head1 DEPENDENCIES
=head1 INCOMPATIBILITIES
=head1 BUGS AND LIMITATIONS
=head1 AUTHOR
Roger Pettett <rmp@sanger.ac.uk>.
=head1 LICENSE AND COPYRIGHT
Copyright (c) 2006 The Sanger Institute
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself. See DISCLAIMER.txt for
disclaimers of warranty.
( run in 1.183 second using v1.01-cache-2.11-cpan-39bf76dae61 )