return $parser->get_server_config($host);
}
+__PACKAGE__->register_method( method => 'get_default_config', api_name => 'opensrf.settings.default_config.get' );
+sub get_default_config {
+ my( $self, $client ) = @_;
+ my $parser = OpenSRF::Utils::SettingsParser->new();
+ return $parser->get_default_config();
+}
+
} catch OpenSRF::EX with {
+ if( ! ($session->connect()) ) {die "Settings Connect timed out\n";}
+ $req = $session->request( "opensrf.settings.default_config.get" );
+ $resp = $req->recv( timeout => 10 );
+
+ } catch Error with {
+
my $e = shift;
warn "Connection to Settings Failed $e : $@ ***\n";
die $e;
+
+ } otherwise {
+
+ my $e = shift;
+ warn "Settings Retrieval Failed $e : $@ ***\n";
+ die $e;
};
if(!$resp) {
return $self->_get( $xpath );
}
+sub get_default_config {
+ my( $self, $server ) = @_;
+ my $xpath = "/opensrf/default";
+ return $self->_get( $xpath );
+}
+
sub get_bootstrap_config {
my( $self ) = @_;
my $xpath = "/opensrf/bootstrap";