@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.getXmlRequest() != null && req.getXmlRequest().toLowerCase().contains(item.toLowerCase())) { nullableFaultMsg.set("The request content contained the flag " + item + ". " + nullableFaultMsg.get()); return true; } return false; }
is = new ByteArrayInputStream(req.getXmlRequest().getBytes(Constants.CHARSET)); } else { is = new ByteArrayInputStream(req.getXmlResponse().getBytes(Constants.CHARSET));
com.setBoolean(6, req.isSuccess()); com.setString(7, Utility.truncate(InetAddress.getLocalHost().getHostName().toLowerCase(), MAXTEXT)); if (Utility.stringIsNullOrEmpty(req.getXmlRequest())) { com.setNull(8, java.sql.Types.BINARY); } else { byte[] x = Utility.EN((req.getXmlRequest()).trim()).getBytes(Constants.CHARSET);// Encoding.UTF8.GetBytes(req.getXmlRequest()); ByteArrayInputStream s = new ByteArrayInputStream(x); com.setBinaryStream(8, s, (int) x.length);
if (!org.miloss.fgsms.common.Utility.stringIsNullOrEmpty(PreppedMessage.getXmlRequest())) { totalbody += PreppedMessage.getXmlRequest().length(); PreppedMessage = PrepMessage(current, p); if (PreppedMessage != null && !org.miloss.fgsms.common.Utility.stringIsNullOrEmpty(PreppedMessage.getXmlRequest())) { totalbody += PreppedMessage.getXmlRequest().length();