Esempio n. 1
0
  boolean callNotify(SyncNotification oNotify, String strBody) throws Exception {
    if (getSync().isNoThreadedMode()) {
      m_strNotifyBody = strBody;
      return false;
    }

    if (oNotify.m_strUrl.length() == 0) return true;

    NetResponse resp = getNet().pushData(oNotify.m_strUrl, strBody, null);
    if (!resp.isOK())
      LOG.ERROR(
          "Fire object notification failed. Code: "
              + resp.getRespCode()
              + "; Error body: "
              + resp.getCharData());
    else {
      String szData = resp.getCharData();
      return szData != null && szData.equals("stop");
    }

    return false;
  }