NAME
RDF::Server::Semantic::Atom::Service - supports use of Atom service documents
SYNOPSIS
package My::Server;
interface 'REST';
protocol 'HTTP';
my $server = new My::Server
handler => RDF::Server::Semantic::Atom::Service -> new(
uri_prefix => '/',
handlers => [
RDF::Server::Semantic::Atom::Workspace -> new (
handlers => [
RDF::Server::Semantic::Atom::Collection -> new (
...
)
]
)
]
)
;
or (if using the Atom semantic):
my $server = new My::Server
handler => [ service => {
uri_prefix => '/',
workspaces => [
{ ..., collections => [ ... ] },
{ ..., collections => [ ... ] },
],
} ]
;
DESCRIPTION
METHODS
- render
-
Returns an app:service XML document.
- data
-
Returns a Perl data structure containing information about the service's workspaces. The returned value is a hash reference with the single key
workspaces
that maps to an array reference listing the data structures returned by thedata
method on the RDF::Server::Semantic::Atom::Workspace handler objects.
AUTHOR
James Smith, <jsmith@cpan.org>
LICENSE
Copyright (c) 2008 Texas A&M University.
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.