NAME
Thrift::Parser::Message - Message object
DESCRIPTION
USAGE
method
Returns the Thrift::Parser::Method class that is represented in this message.
type
Returns the Thrift type id of this message.
seqid
A Thrift sequence ID.
arguments
A Thrift::Parser::FieldSet object representing the arguments of this message.
compose_reply
my $reply_message = $message->compose_reply($reply);
A helper method, use this to compose a new message which is a reply to another message. Expects the type of the reply to correspond with the "return_class" in Thrift::Parser::Method. seqid
is inherited.
compose_reply_exception
my $reply_message = $message->compose_reply_exception($exception);
my $reply_message = $message->compose_reply_exception({
ouch => {
message => 'you made a mistake,
}
});
A helper method, use this to compose a new message which is a reply to another message. Expects the type of the reply to correspond with one of the "throw_classes" in Thrift::Parser::Method. seqid
is inherited. You may pass it a blessed object or a hashref with one key (the name of the throw you're using).
compose_reply_application_exception
my $reply_message = $message->compose_reply_application_exception($error, $code);
A helper method, use this to compose a new message which is a reply to another message. Throws as TApplicationException with the error message and code as passed. seqid is inherited.
COPYRIGHT
Copyright (c) 2009 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.
AUTHOR
Eric Waters <ewaters@gmail.com>