01: package org.objectweb.celtix.bus.bindings.xml;
02:
03: import java.util.*;
04:
05: import javax.xml.ws.handler.MessageContext;
06:
07: import org.objectweb.celtix.context.MessageContextWrapper;
08:
09: class XMLMessageContextImpl extends MessageContextWrapper implements
10: XMLMessageContext {
11: private static final long serialVersionUID = 1L;
12: private static final String XML_MESSAGE = "org.objectweb.celtix.bindings.xml.message";
13:
14: public XMLMessageContextImpl(MessageContext ctx) {
15: super (ctx);
16: }
17:
18: public XMLMessage getMessage() {
19: return (XMLMessage) get(XML_MESSAGE);
20: }
21:
22: public void setMessage(XMLMessage xmlMsg) {
23: put(XML_MESSAGE, xmlMsg);
24: setScope(XML_MESSAGE, MessageContext.Scope.HANDLER);
25: }
26: }
|