Package org.apache.webdav.lib.methods
Interface DepthSupport
- All Known Implementing Classes:
AclReportMethod
,LockMethod
,PropFindMethod
,ReportMethod
,SubscribeMethod
,VersionControlMethod
public interface DepthSupport
Methods that can act on collections (for example, DELETE, LOCK, PROPFIND,
etc.) support a depth header. The depth header indicates that the
method applies to either:
- the collection (depth 0);
- the collection and its immediate contents (depth 1); or
- the collection, its contents and all subcollections (depth infinity).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Request with depth 0.static final int
Request with depth 1.static final int
Request with depth infinity. -
Method Summary
-
Field Details
-
DEPTH_0
static final int DEPTH_0Request with depth 0.- See Also:
-
DEPTH_1
static final int DEPTH_1Request with depth 1.- See Also:
-
DEPTH_INFINITY
static final int DEPTH_INFINITYRequest with depth infinity.- See Also:
-
-
Method Details
-
setDepth
void setDepth(int depth) Depth setter.- Parameters:
depth
- New depth value
-
getDepth
int getDepth()Depth getter.- Returns:
- int depth value
-