Esempio n. 1
0
 protected void interpretHTTPBadRequestBody(final SyncStorageResponse storageResponse) {
   try {
     final String body = storageResponse.body();
     if (body == null) {
       return;
     }
     if (SyncStorageResponse.RESPONSE_CLIENT_UPGRADE_REQUIRED.equals(body)) {
       callback.informUpgradeRequiredResponse(this);
       return;
     }
   } catch (Exception e) {
     Logger.warn(LOG_TAG, "Exception parsing HTTP 400 body.", e);
   }
 }