RDF::Server::Interface - defines how the server speaks over the protocol


RDF-Server documentation Contained in the RDF-Server distribution.

Index


Code Index:

NAME

Top

RDF::Server::Interface - defines how the server speaks over the protocol

SYNOPSIS

Top

 package My::Interface;

 use Moose::Role;
 with 'RDF::Server::Interface';

DESCRIPTION

Top

CONFIGURATION

Top

handlers : ArrayRef[Handler]

This is a list of objects that implement the RDF::Server::Role::Handler role. These are searched by find_handler to find the handler that will handle the given path.

METHODS

Top

find_handler($)

Given a path, this will return the handler object that should be used to handle the request. If no such object can be found, this will return undef.

N.B.: Regardless of how the request URL is constructed, find_handler expects a REST-style path to find the proper handler. This does not apply to determining what operation is done through the handler once the handler is identified.

handle_request ($$) (required)

This method is given an HTTP::Request and HTTP::Response object (in that order) representing the current request and prepared response.

SEE ALSO

Top

RDF::Server::Interface::REST

AUTHOR

Top

James Smith, <jsmith@cpan.org>

LICENSE

Top

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.


RDF-Server documentation Contained in the RDF-Server distribution.

package RDF::Server::Interface;

use Moose::Role;

requires 'handle_request';

no Moose::Role;

1;

__END__