public static class BoxRequestsFolder.DeleteFolder extends BoxRequestItemDelete<BoxRequestsFolder.DeleteFolder>
BoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.MethodsmIdJSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mRequiresSocket, mSession, mTimeout| Constructor and Description |
|---|
DeleteFolder(java.lang.String id,
java.lang.String requestUrl,
BoxSession session)
Creates a delete folder request with the default parameters
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
getRecursive()
Gets whether the folder delete should be recursive and delete all child folders
|
protected void |
onSendCompleted(BoxResponse<BoxVoid> response)
Post action that will be performed after a successful send occurs.
|
BoxRequestsFolder.DeleteFolder |
setRecursive(boolean recursive)
Sets whether the folder delete should be recursive and delete all child folders
|
getId, getIfMatchEtag, setIfMatchEtagbuildUrl, createHeaderMap, createHttpRequest, createQuery, equals, getIfNoneMatchEtag, getRequestHandler, getSession, getSocket, getStringBody, handleSendForCachedResult, handleToTaskForCachedResult, handleUpdateCache, hashCode, importRequestContentMapsFrom, logDebug, logRequest, onSend, parseHashMapEntry, parseJsonObject, send, sendRequest, setBody, setContentType, setHeaders, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskpublic DeleteFolder(java.lang.String id,
java.lang.String requestUrl,
BoxSession session)
id - id of the folder to deleterequestUrl - URL of the delete folder endpointsession - the authenticated session that will be used to make the request withpublic BoxRequestsFolder.DeleteFolder setRecursive(boolean recursive)
recursive - whether the delete should be recursivepublic java.lang.Boolean getRecursive()
protected void onSendCompleted(BoxResponse<BoxVoid> response) throws BoxException
BoxRequestonSendCompleted in class BoxRequest<BoxVoid,BoxRequestsFolder.DeleteFolder>response - response of the BoxRequestBoxException - thrown if there was a problem with handling the request.