@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.getXmlResponse() != null && req.getXmlResponse().toLowerCase().contains(item.toLowerCase())) { nullableFaultMsg.set("The response 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.setBinaryStream(8, s, (int) x.length); if (Utility.stringIsNullOrEmpty(req.getXmlResponse())) { com.setNull(9, java.sql.Types.BINARY); } else { byte[] x = Utility.EN((req.getXmlResponse()).trim()).getBytes(Constants.CHARSET);// Encoding.UTF8.GetBytes(req.getXmlRequest()); ByteArrayInputStream s = new ByteArrayInputStream(x); com.setBinaryStream(9, s, (int) x.length);
totalbody += PreppedMessage.getXmlRequest().length(); if (!org.miloss.fgsms.common.Utility.stringIsNullOrEmpty(PreppedMessage.getXmlResponse())) { totalbody += PreppedMessage.getXmlResponse().length(); totalbody += PreppedMessage.getXmlRequest().length(); if (PreppedMessage != null && !org.miloss.fgsms.common.Utility.stringIsNullOrEmpty(PreppedMessage.getXmlResponse())) { totalbody += PreppedMessage.getXmlResponse().length();