NAME
POE::Component::Client::Feed - Event based feed client
VERSION
version 0.901
SYNOPSIS
package MyServer;
use MooseX::POE;
use POE::Component::Client::Feed;
has feed_client => (
is => 'ro',
default => sub {
POE::Component::Client::Feed->new();
}
);
event feed_received => sub {
my ( $self, @args ) = @_[ OBJECT, ARG0..$#_ ];
my $http_request = $args[0];
my $xml_feed = $args[1];
my $tag = $args[2];
};
sub START {
my ( $self ) = @_;
$self->feed_client->yield('request','http://news.perlfoundation.org/atom.xml','feed_received','tag');
}
DESCRIPTION
This POE Component gives you like POE::Component::Client::HTTP an event based way of fetching from a feed. It is not made for making consume a feed and only get events on new headlines, for this you can use POE::Component::FeedAggregator which is based on this module, or POE::Component::RSSAggregator.
SEE ALSO
AUTHOR
Torsten Raudssus <torsten@raudssus.de>
COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Raudssus Social Software.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.