InfoSys-FreeDB
view release on metacpan or search on metacpan
lib/InfoSys/FreeDB/Connection.pm view on Meta::CPAN
828829830831832833834835836837838839840841842843844845846847848
210
=>
$FINAL_DOT_RX
,
} );
# Parse the result and return it
return
( InfoSys::FreeDB::Response::Stat->new_from_content_ref(
$content_ref
) );
}
sub
update {
throw Error::Simple(
"ERROR: InfoSys::FreeDB::Connection::update, call this method in a subclass that has implemented it."
);
}
sub
ver {
my
$self
=
shift
;
# Send command and wait for reply
my
$cmd
=
'ver'
;
my
$content_ref
=
$self
->_wait_command_reply(
$cmd
, {
200
=>
$FINAL_EOL_RX
,
lib/InfoSys/FreeDB/Connection/CDDBP.pm view on Meta::CPAN
693694695696697698699700701702703704705706707708709710711712713
my
$self
=
shift
;
my
$val
=
shift
;
# Check if isa/ref/rx/value is allowed
&_value_is_allowed
(
'sign_on_response'
,
$val
) || throw Error::Simple(
"ERROR: InfoSys::FreeDB::Connection::CDDBP::set_sign_on_response, the specified value '$val' is not allowed."
);
# Assignment
$self
->{InfoSys_FreeDB_Connection_CDDBP}{sign_on_response} =
$val
;
}
sub
update {
throw Error::Simple(
"ERROR: InfoSys::FreeDB::Connection::CDDBP::update, THIS METHOD IS NOT YET IMPLEMENTED."
);
}
sub
write
{
my
$self
=
shift
;
my
$entry
=
shift
;
my
$cat
=
shift
;
# Throw exception if no cat
(
$cat
) ||
lib/InfoSys/FreeDB/Connection/HTTP.pm view on Meta::CPAN
520521522523524525526527528529530531532533534535536
my
$self
=
shift
;
my
$val
=
shift
;
# Check if isa/ref/rx/value is allowed
&_value_is_allowed
(
'freedb_cgi'
,
$val
) || throw Error::Simple(
"ERROR: InfoSys::FreeDB::Connection::HTTP::set_freedb_cgi, the specified value '$val' is not allowed."
);
# Assignment
$self
->{InfoSys_FreeDB_Connection_HTTP}{freedb_cgi} =
$val
;
}
sub
update {
throw Error::Simple (
"ERROR: InfoSys::FreeDB::Connection::HTTP::update, THIS METHOD IS NOT YET IMPLEMENTED."
);
}
sub
write
{
throw Error::Simple (
"ERROR: InfoSys::FreeDB::Connection::HTTP::write, this method is not supported over 'HTTP'."
);
}
( run in 0.685 second using v1.01-cache-2.11-cpan-10033ea8487 )