X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/b0ab3ce0872d2702e82b5979dddaa5a897be340b..d33f4791497b7fa59fba92df8c71dfc5989d52b2:/src/eu/alefzero/webdav/WebdavClient.java diff --git a/src/eu/alefzero/webdav/WebdavClient.java b/src/eu/alefzero/webdav/WebdavClient.java index 6f98f500..df30dcb6 100644 --- a/src/eu/alefzero/webdav/WebdavClient.java +++ b/src/eu/alefzero/webdav/WebdavClient.java @@ -1,9 +1,10 @@ /* ownCloud Android client application * Copyright (C) 2011 Bartek Przybylski + * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or + * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, @@ -165,7 +166,7 @@ public class WebdavClient extends HttpClient { try { File f = new File(localFile); FileRequestEntity entity = new FileRequestEntity(f, contentType); - entity.addOnDatatransferProgressListener(mDataTransferListener); + entity.addDatatransferProgressListener(mDataTransferListener); put.setRequestEntity(entity); status = executeMethod(put); @@ -337,19 +338,4 @@ public class WebdavClient extends HttpClient { return mUri; } - public String getResultAsString(String targetUrl) { - String getResult = null; - try { - GetMethod get = new GetMethod(targetUrl); - int status = executeMethod(get); - if (status == HttpStatus.SC_OK) { - getResult = get.getResponseBodyAsString(); - } - } catch (Exception e) { - Log.e(TAG, "Error while getting requested file: " + targetUrl, e); - getResult = null; - } - return getResult; - } - }