R - type of BoxRequest that is being created.public abstract class BoxRequestItemDelete<R extends BoxRequest<BoxVoid,R>> extends BoxRequest<BoxVoid,R>
BoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.Methods, BoxRequest.TLSSSLSocketFactory| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
mId |
JSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mRequiresSocket, mSession, mTimeout| Constructor and Description |
|---|
BoxRequestItemDelete(java.lang.String id,
java.lang.String requestUrl,
BoxSession session)
Constructs an item delete request with the default parameters.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId()
Gets the id of the item to delete.
|
java.lang.String |
getIfMatchEtag()
Returns the currently set etag for the if-match header of the request.
|
R |
setIfMatchEtag(java.lang.String etag)
Sets the if-match header for the request.
|
buildUrl, createHeaderMap, createHttpRequest, createQuery, equals, getIfNoneMatchEtag, getRequestHandler, getSession, getSocket, getStringBody, handleSendForCachedResult, handleToTaskForCachedResult, handleUpdateCache, hashCode, importRequestContentMapsFrom, logDebug, logRequest, onSend, onSendCompleted, parseHashMapEntry, parseJsonObject, send, sendRequest, setBody, setContentType, setHeaders, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskpublic BoxRequestItemDelete(java.lang.String id,
java.lang.String requestUrl,
BoxSession session)
id - id of the Box item to delete.requestUrl - URL of the delete endpoint.session - the authenticated session that will be used to make the request with.public java.lang.String getId()
public R setIfMatchEtag(java.lang.String etag)
setIfMatchEtag in class BoxRequest<BoxVoid,R extends BoxRequest<BoxVoid,R>>etag - etag to set in the if-match header.public java.lang.String getIfMatchEtag()
getIfMatchEtag in class BoxRequest<BoxVoid,R extends BoxRequest<BoxVoid,R>>