1 17 package org.apache.sandesha.server.msgprocessors; 18 19 import org.apache.axis.AxisFault; 20 import org.apache.sandesha.IStorageManager; 21 import org.apache.sandesha.RMMessageContext; 22 import org.apache.sandesha.ws.rm.TerminateSequence; 23 24 29 public class TerminateSequenceProcessor implements IRMMessageProcessor { 30 31 IStorageManager storageManger = null; 32 33 public TerminateSequenceProcessor(IStorageManager storageManger) { 34 this.storageManger = storageManger; 35 } 36 37 public boolean processMessage(RMMessageContext rmMessageContext) throws AxisFault { 38 39 TerminateSequence terminateSeq = rmMessageContext.getRMHeaders().getTerminateSequence(); 40 if (terminateSeq != null && terminateSeq.getIdentifier() != null) { 41 String seqID = terminateSeq.getIdentifier().getIdentifier(); 42 storageManger.setTerminateReceived(seqID); 43 } 44 return false; 45 } 46 47 48 } | Popular Tags |