On Wednesday, 13. September 2006 11:15, Lars Skjærlund wrote:
> Hi list,
>
> I'm trying to work my way through the new AxKit2 code - but before I
> figure it out myself, maybe someone would be kind enough to help me:
> Where's the equivalent of an AxKit1 Provider?

For AxKit2, all you write are plugins. Plugins are documented in 
AxKit2::Docs::WritingPlugins.

The usual hook you'd implement for provider-like behaviour would be 
handle_xmlresponse, unless you are creating non-XML-content, then it would be 
handle_response.

Basically, there are no providers anymore. xmlresponse hooks are free to read 
any data from anywhere they like, for examples from the file named 
$self->client->headers_in->filename (the result of uri-to-file mapping). Then 
you can store your input data via $input->dom(...). If you return DECLINED 
after that, you have exact provider behaviour. A second plugin can then pick 
up that DOM and transform it, like generic_transform which is shipped with 
version 1.1.

I suggest you take a look at demo/moewiki, it is pretty short and demonstrates 
several aspects of provider and webapp behaviour.

-- 
CU
Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to