dev@jax-ws.java.net

Re: A new MessageHandler to access com.sun.xml.ws.api.Message

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 29 Jan 2007 13:49:21 -0800

If this can be done without too much work, I think this is excellent. I
agree with your analysis that asking them to write assembler is just too
much.

What's your take on the implementation complexity?


Rama Pulavarthi wrote:
> Now and then, we suggest users to write their own Tube to process the
> Message like Handler and plug it in by writing a a new TubelineAssembler.
> The reason for this is using SOAPHandler might be costly as they work on
> DOM based SOAPMessage.
>
> Writing a TubelineAssembler for simple uses is difficult. How about we
> provide a new Protocol Handler to work on com.sun.xml.ws.Message.
>
> public interface MessageHandler<T extends RIMessageContext>
> extends Handler<T> {
>
> }
>
> public interface RIMessageContext
> extends MessageContext {
>
> /** Gets the message from this message context
> *
> * @return The contained message; returns <code>null</code> if no
> * message is present in this message context
> **/
> public com.sun.xml.ws.api.Message getMessage();
> }
>
>
> This way user can write a simple handler extending MessageHandler and
> can be plugged in easily.
>
> thanks,
> Rama Pulavarthi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: dev-help_at_jax-ws.dev.java.net
>
>


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com