child_init() unless $handler;
return Apache2::Const::NOT_FOUND unless $handler and $type and $format and $key;
- return $res if defined($res = $AC->serve_from_cache($type, $format, $key));
- return Apache2::Const::NOT_FOUND unless $AC->lookups_enabled;
my $err;
my $data;
my $method = "${type}_${format}";
return Apache2::Const::NOT_FOUND unless $handler->can($method);
+ return $res if defined($res = $AC->serve_from_cache($type, $format, $key));
+ return Apache2::Const::NOT_FOUND unless $AC->lookups_enabled;
try {
$data = $handler->$method($key);
# --------------------------------------------------------------------------
-sub toc_html {
- my( $self, $key ) = @_;
-}
-
-sub toc_xml {
- my( $self, $key ) = @_;
-}
-
-sub toc_json {
- my( $self, $key ) = @_;
-}
-
-# --------------------------------------------------------------------------
-
-sub anotes_html {
- my( $self, $key ) = @_;
-}
-
-sub anotes_xml {
- my( $self, $key ) = @_;
-}
-
-sub anotes_json {
- my( $self, $key ) = @_;
-}
-
-
-# --------------------------------------------------------------------------
-
-sub excerpt_html {
- my( $self, $key ) = @_;
-}
-
-sub excerpt_xml {
- my( $self, $key ) = @_;
-}
-
-sub excerpt_json {
- my( $self, $key ) = @_;
-}
-
-# --------------------------------------------------------------------------
-
-sub reviews_html {
- my( $self, $key ) = @_;
-}
-
-# we have to aggregate the reviews
-sub reviews_xml {
- my( $self, $key ) = @_;
-}
-
-
-sub reviews_json {
- my( $self, $key ) = @_;
-}
-
-# --------------------------------------------------------------------------
-
sub send_img {
my($self, $response) = @_;
return {