コード例 #1
0
 public boolean validatesSecureCertificate() {
   if (proxy.hasDynamicValue("validatesSecureCertificate")) {
     return TiConvert.toBoolean(proxy.getDynamicValue("validatesSecureCertificate"));
   } else {
     if (proxy
         .getTiContext()
         .getTiApp()
         .getDeployType()
         .equals(TiApplication.DEPLOY_TYPE_PRODUCTION)) {
       return true;
     }
   }
   return false;
 }
コード例 #2
0
  public DocumentProxy getResponseXML() {
    // avoid eating up tons of memory if we have a large binary data blob
    if (TiMimeTypeHelper.isBinaryMimeType(contentType)) {
      return null;
    }
    if (responseXml == null && (responseData != null || responseText != null)) {
      try {
        responseXml = XMLModule.parse(proxy.getTiContext(), getResponseText());
      } catch (Exception e) {
        Log.e(LCAT, "Error parsing XML", e);
      }
    }

    return responseXml;
  }