POE::Component::Server::Bayeux::Client::Message - An object representing a single message of a request
Used internally by POE::Component::Server::Bayeux::Request.
This is the parent class of the different message types (Meta, Service, Publish, by default). Each message can override or call via SUPER the object methods here.
Accessors to this objects hashref.
These access the named field in the message payload
Returns the server's args
Called by the request before handle(). Enables the message to affect the queueing of the other messages in the request, or do anything else it wants.
At a minimum, validates the fields of the message payload. A message will usually add a response in this block:
$message->request->add_response({ successful => 1 });
Like pre_handle(), but called after the handle() phase.
Given a Params::Validate spec, will test the payload for validity. Failure causes an error message stored in is_error().
Basic new() call, needs only 'request' and 'data'.
Returns the message payload
Generates object accessor methods for the named methods. Supplements the generic methods that are created for all message types.
Copyright (c) 2008 Eric Waters and XMission LLC (http://www.xmission.com/). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
Eric Waters <ewaters@uarc.com>
To install POE::Component::Server::Bayeux, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Component::Server::Bayeux
CPAN shell
perl -MCPAN -e shell install POE::Component::Server::Bayeux
For more information on module installation, please visit the detailed CPAN module installation guide.