@Override public NotifyResult process(Element root) { Element requestHeader = root.element("Header"); serialNo = XmlUtils.getChildElementContent(requestHeader, "SerialNo"); String memcached_key = "shholiday_notify_" + serialNo; if ("true".equals(MemcachedUtil.getInstance().get(memcached_key))) { result.setSuccess(header); // 直接正常返回 } else { Element body = root.element(bodyElementTag); handle(body); result.setSuccess(header); if (header.isSuccess()) { MemcachedUtil.getInstance().set(memcached_key, "true"); } } return result; }
protected void addParam(String key, Object value) { result.addParam(key, value); }