Dave Rolsky > Antispam-Toolkit-0.08 > Antispam::Toolkit::Role::URIChecker

Download:
Antispam-Toolkit-0.08.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.08   Source  

NAME ^

Antispam::Toolkit::Role::URIChecker - A role for classes which check whether a uri is spam

VERSION ^

version 0.08

SYNOPSIS ^

  package MyURIChecker;

  use Moose;

  with 'Antispam::Toolkit::Role::URIChecker';

  sub check_uri { ... }

DESCRIPTION ^

This role specifies an interface for classes which check whether a specific uri is spam.

REQUIRED METHODS ^

Classes which consume this method must provide one method:

$checker->check_uri( uri => ... )

This method implements the actual spam checking for a uri. The uri will be passed as a named parameter.

METHODS ^

This role provides an around modifier for the $checker->check_uri() method. The modifier does validation on all the parameters, so there's no need to implement this in the class itself.

BUGS ^

See Antispam::Toolkit for bug reporting details.

AUTHOR ^

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE ^

This software is Copyright (c) 2011 by Dave Rolsky.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)
syntax highlighting: