Glen
Firstly, I think we should Synapse-user as well :-)
Personally, I'm not *so* sure the OMElement one is that useful -
because if you grok OMElement you can easily figure out MC.
On the other hand the DOM and StAX have an advantage that they are
java standard APIs. So I find those two more useful. Especially DOM as
you have to do some freaky stuff to convert from an OMElement to a
DOOM Element so if we got that out of the way for the user then that
would be goodness. Also we might end up fixing the bugs in the
LLOM->DOOM conversion process that have been bugging me the last
couple of days!!!
Paul
On 8/2/07, Glen Daniels <[EMAIL PROTECTED]> wrote:
> So right now, people building Synapse Mediators need to grok the
> MessageContext interface, and how to pull data from / push data to
> there. Granted, not a huge problem, but Paul and I were talking earlier
> about the Class Mediator, and that got me thinking we might also
> consider a couple of convenience classes:
>
> abstract class DOMMediator implements Mediator {
> public final boolean mediate(MessageContext synCtx) {
> // Get DOM, pass to...
> }
>
> // Here's what you override
> public abstract boolean mediate(Element element);
> }
>
> ...and the same thing with StAXMediator, which hands off an
> XmlStreamReader instead of an Element. In either case, we'd want an
> available switch to decide whether the passed object points to the
> entire SOAP envelope or just the first body element.
>
> This is really just like Axis1's MessageProvider allowing operation
> signatures that take Element or SOAPEnvelope or MessageContext.
>
> Does this actually seem useful, or is it really simple enough just to
> get the content from the MessageContext in the form you want? I'm not
> sure, hence this mail. :)
>
> Thanks,
> --Glen
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair
blog: http://pzf.fremantle.org
[EMAIL PROTECTED]
"Oxygenating the Web Service Platform", www.wso2.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]