1Net::Stomp::Frame(3)  User Contributed Perl Documentation Net::Stomp::Frame(3)
2
3
4

NAME

6       Net::Stomp::Frame - A STOMP Frame
7

SYNOPSIS

9         use Net::Stomp::Frame;
10         my $frame = Net::Stomp::Frame->new( {
11           command => $command,
12           headers => $headers,
13           body    => $body,
14         } );
15         my $frame  = Net::Stomp::Frame->parse($string);
16         my $string = $frame->as_string;
17

DESCRIPTION

19       This module encapulates a Stomp frame. Stomp is the Streaming Text
20       Orientated Messaging Protocol (or the Protocol Briefly Known as TTMP
21       and Represented by the symbol :ttmp). It's a simple and easy to
22       implement protocol for working with Message Orientated Middleware from
23       any language. Net::Stomp is useful for talking to Apache ActiveMQ, an
24       open source (Apache 2.0 licensed) Java Message Service 1.1 (JMS)
25       message broker packed with many enterprise features.
26
27       A Stomp frame consists of a command, a series of headers and a body.
28
29       For details on the protocol see <http://stomp.codehaus.org/Protocol>.
30

METHODS

32   new
33       Create a new Net::Stomp::Frame object:
34
35         my $frame = Net::Stomp::Frame->new( {
36           command => $command,
37           headers => $headers,
38           body    => $body,
39         } );
40
41   parse
42       Create a new Net::Somp::Frame given a string containing the serialised
43       frame:
44
45         my $frame  = Net::Stomp::Frame->parse($string);
46
47   as_string
48       Create a string containing the serialised frame representing the frame:
49
50         my $string = $frame->as_string;
51
52   destination
53       Get or set the "destination" header.
54
55   content_type
56       Get or set the "content-type" header.
57
58   content_length
59       Get or set the "content-length" header.
60
61   exchange
62       Get or set the "exchange" header.
63
64   message_id
65       Get or set the "message-id" header.
66

SEE ALSO

68       Net::Stomp.
69

AUTHOR

71       Leon Brocard <acme@astray.com>.
72
74       Copyright (C) 2006, Leon Brocard
75
76       This module is free software; you can redistribute it or modify it
77       under the same terms as Perl itself.
78
79
80
81perl v5.12.1                      2010-06-27              Net::Stomp::Frame(3)
Impressum