1 17 18 package org.apache.sandesha.ws.rm; 19 20 import org.apache.axis.message.MessageElement; 21 import org.apache.sandesha.Constants; 22 23 import javax.xml.soap.SOAPException ; 24 25 32 public class LastMessage extends MessageElement implements IRmElement { 33 34 37 private MessageElement lastMsgElement; 38 39 42 public LastMessage() { 43 lastMsgElement = new MessageElement(); 44 45 lastMsgElement.setName(Constants.WSRM.NS_PREFIX_RM + Constants.COLON + 46 Constants.WSRM.LAST_MSG); 47 } 48 49 54 public MessageElement getSoapElement() { 55 return lastMsgElement; 56 } 57 58 64 public LastMessage fromSOAPEnvelope(MessageElement element) { 65 return this; 66 } 67 68 75 public MessageElement toSOAPEnvelope(MessageElement msgElement) throws SOAPException { 76 msgElement.addChildElement(Constants.WSRM.LAST_MSG, Constants.WSRM.NS_PREFIX_RM); 77 return msgElement; 78 } 79 80 85 public void addChildElement(MessageElement element) { 86 87 } 89 90 95 public MessageElement getLastMsgElement() { 96 return lastMsgElement; 97 } 98 99 104 public void setLastMsgElement(MessageElement element) { 105 lastMsgElement = element; 106 } 107 } | Popular Tags |