*/
public class ClientPropertyValidator {
public static synchronized RMMessageContext validate(Call call) throws AxisFault {
RMMessageContext rmMessageContext = null;
boolean inOut = getInOut(call);
long msgNumber = getMessageNumber(call);
boolean lastMessage = getLastMessage(call);
boolean sync = getSync(call);
String action = getAction(call);
String sourceURL = null;
String from = getFrom(call);
String replyTo = getReplyTo(call);
String acksTo = getAcksTo(call);
String to = getTo(call);
String faultTo = getFaultTo(call);
boolean sendOffer = getOffer(call);
String key = getKey(call);
SandeshaContext ctx = getCtx(call);
try {
sourceURL = getSourceURL(call);
} catch (Exception e) {
throw new AxisFault(e.getMessage());
}
String errorMsg = getValidated(msgNumber, action, replyTo, sync, inOut);
if (errorMsg == null) {
rmMessageContext = new RMMessageContext();
rmMessageContext.setSync(sync);
rmMessageContext.setHasResponse(inOut);
rmMessageContext.setMsgNumber(msgNumber);
rmMessageContext.setLastMessage(lastMessage);
rmMessageContext.setSourceURL(sourceURL);
rmMessageContext.setSequenceID(key);
rmMessageContext.setReplyTo(replyTo);
rmMessageContext.setFrom(from);
rmMessageContext.setAction(action);
rmMessageContext.setAcksTo(acksTo);
rmMessageContext.setTo(to);
rmMessageContext.setFaultTo(faultTo);
rmMessageContext.setSendOffer(sendOffer);
rmMessageContext.setCtx(ctx);
return rmMessageContext;
} else
throw new AxisFault(errorMsg);