mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-08 08:26:10 +00:00
Merge pull request #207 from sd1998/Fix-2247
Changes for handling HTTP_METHOD_NOT_FOUND responses
This commit is contained in:
commit
e0a6c68c66
@ -115,7 +115,8 @@ public class RemoteOperationResult<T extends Object>
|
|||||||
LOCAL_FILE_NOT_FOUND,
|
LOCAL_FILE_NOT_FOUND,
|
||||||
SERVICE_UNAVAILABLE,
|
SERVICE_UNAVAILABLE,
|
||||||
SPECIFIC_SERVICE_UNAVAILABLE,
|
SPECIFIC_SERVICE_UNAVAILABLE,
|
||||||
SPECIFIC_UNSUPPORTED_MEDIA_TYPE
|
SPECIFIC_UNSUPPORTED_MEDIA_TYPE,
|
||||||
|
SPECIFIC_METHOD_NOT_ALLOWED
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean mSuccess = false;
|
private boolean mSuccess = false;
|
||||||
@ -274,6 +275,11 @@ public class RemoteOperationResult<T extends Object>
|
|||||||
ResultCode.SPECIFIC_SERVICE_UNAVAILABLE
|
ResultCode.SPECIFIC_SERVICE_UNAVAILABLE
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
case HttpConstants.HTTP_METHOD_NOT_ALLOWED:
|
||||||
|
parseErrorMessageAndSetCode(
|
||||||
|
httpMethod.getResponseBodyAsString(),
|
||||||
|
ResultCode.SPECIFIC_METHOD_NOT_ALLOWED
|
||||||
|
);
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user