@Override public boolean CheckTransactionalRule(AddDataRequestMsg req, List<NameValuePair> params, AtomicReference<String> nullableFaultMsg) { if (nullableFaultMsg == null) { nullableFaultMsg = new AtomicReference<String>(); } NameValuePair GetNameValuePairByName = Utility.getNameValuePairByName(params, "value"); String item = GetNameValuePairByName.getValue(); if (GetNameValuePairByName.isEncrypted()) { item = Utility.DE(GetNameValuePairByName.getValue()); } if (req.getAction().toLowerCase().contains(item.toLowerCase())) { nullableFaultMsg.set("Action Contains Ignore Case " + item + ", " + nullableFaultMsg.get()); } return false; }
@Override public boolean CheckTransactionalRule(AddDataRequestMsg req, List<NameValuePair> params, AtomicReference<String> nullableFaultMsg) { if (nullableFaultMsg == null) { nullableFaultMsg = new AtomicReference<String>(); } NameValuePair GetNameValuePairByName = Utility.getNameValuePairByName(params, "value"); String item = GetNameValuePairByName.getValue(); if (GetNameValuePairByName.isEncrypted()) { item = Utility.DE(GetNameValuePairByName.getValue()); } if (req.getAction().equalsIgnoreCase(item)) { nullableFaultMsg.set("Action Equals Ignore Case " + item + ", " + nullableFaultMsg.get()); } return false; }
if (Utility.stringIsNullOrEmpty(req.getAction())) { com.setString(14, "unspecified"); req.setAction("unspecified"); com.setString(14, Utility.truncate(req.getAction(), MAXTEXT)); if (!uriaction.containsKey(req.getURI() + req.getAction())) { uriaction.put(req.getURI() + req.getAction(), true); try { com = con.prepareStatement("insert into actionlist (uri, soapaction) values (?,?);"); com.setString(1, req.getURI()); com.setString(2, req.getAction()); com.execute(); log.log(Level.DEBUG, "DCS DEBUG adding URL action"); + req.getURI() + " Action: " + req.getAction() + " Agent: " + req.getAgentType() + " Host: " + req.getServiceHost() + " I'm going to return this as successful, even though it was not."); return true; } else { log.log(Level.ERROR, "Error recording performance data. Data may be lost URL: " + req.getURI() + " Action: " + req.getAction() + " Agent: " + req.getAgentType() + " Host: " + req.getServiceHost(), ex); return false;