X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/2b5785556e7f7c3cefc5f084949e091f80abed6d..f1f8c749d1c98c569ab2b21f497a997cfcde1129:/src/com/owncloud/android/operations/ExistenceCheckOperation.java diff --git a/src/com/owncloud/android/operations/ExistenceCheckOperation.java b/src/com/owncloud/android/operations/ExistenceCheckOperation.java index e5f29bfd..d678ac34 100644 --- a/src/com/owncloud/android/operations/ExistenceCheckOperation.java +++ b/src/com/owncloud/android/operations/ExistenceCheckOperation.java @@ -41,20 +41,6 @@ public class ExistenceCheckOperation extends RemoteOperation { private String mPath; private Context mContext; private boolean mSuccessIfAbsent; - private String mAccessToken; - - - /** - * Simple constructor. Success when the path in the server exists. - * - * @param path Path to append to the URL owned by the client instance. - * @param context Android application context. - * @param accessToken Access token for Bearer Authentication -> TODO: move to other place - */ - public ExistenceCheckOperation(String path, Context context, String accessToken) { - this(path, context, false); - mAccessToken = accessToken; - } /** @@ -80,8 +66,6 @@ public class ExistenceCheckOperation extends RemoteOperation { HeadMethod head = null; try { head = new HeadMethod(client.getBaseUri() + mPath); - head.addRequestHeader("Authorization", "Bearer " + mAccessToken); // TODO put in some general place - int status = client.executeMethod(head, TIMEOUT, TIMEOUT); client.exhaustResponse(head.getResponseBodyAsStream()); boolean success = (status == HttpStatus.SC_OK && !mSuccessIfAbsent) || (status == HttpStatus.SC_NOT_FOUND && mSuccessIfAbsent); @@ -107,8 +91,4 @@ public class ExistenceCheckOperation extends RemoteOperation { } - public String getAccessToken() { - return mAccessToken; - } - }