X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Engine-STOMP.git;a=blobdiff_plain;f=lib%2FCatalyst%2FController%2FMessageDriven.pm;h=d74452e3a899515d617567fcf674175af4495523;hp=678e34bd676b91cb367875de8b6e744096a5bf98;hb=7f592702c2333dca80ef4ef33f7f5850a9e97ca0;hpb=3df1f3be5d21a8ff08c4564539c9b0d70590b93f diff --git a/lib/Catalyst/Controller/MessageDriven.pm b/lib/Catalyst/Controller/MessageDriven.pm index 678e34b..d74452e 100644 --- a/lib/Catalyst/Controller/MessageDriven.pm +++ b/lib/Catalyst/Controller/MessageDriven.pm @@ -31,6 +31,20 @@ A Catalyst controller base class for use with Catalyst::Engine::Stomp, which handles YAML-serialized messages. A top-level "type" key in the YAML determines the action dispatched to. +=head1 METHODS + +=head2 begin + +Deserializes the request into C<< $c->stash->{request} >> + +=head2 default + +Dispatches to method named by the key C<< $c->stash->{request}->{type} >> + +=head2 end + +Serializes the response from C<< $c->stash->{response} >> + =cut __PACKAGE__->config( serializer => 'YAML' );