Class DepthHeader

java.lang.Object
org.apache.jackrabbit.webdav.header.DepthHeader
All Implemented Interfaces:
DavConstants, Header

public class DepthHeader extends Object implements Header, DavConstants
DepthHeader...
  • Constructor Details

    • DepthHeader

      public DepthHeader(int depth)
      Create a new DepthHeader from the given integer.
      Parameters:
      depth -
    • DepthHeader

      public DepthHeader(boolean isDeep)
      Create a new DepthHeader with either value 0 or infinity.
      Parameters:
      isDeep -
  • Method Details

    • getDepth

      public int getDepth()
      Returns:
      integer representation of the depth indicated by the given header.
    • getHeaderName

      public String getHeaderName()
      Return Depth
      Specified by:
      getHeaderName in interface Header
      Returns:
      Depth
      See Also:
    • getHeaderValue

      public String getHeaderValue()
      Returns the header value.
      Specified by:
      getHeaderValue in interface Header
      Returns:
      header value
      See Also:
    • parse

      public static DepthHeader parse(HttpServletRequest request, int defaultValue)
      Retrieve the Depth header from the given request object and parse the value. If no header is present or the value is empty String, the defaultValue is used ot build a new DepthHeader instance.
      Parameters:
      request -
      defaultValue -
      Returns:
      a new DepthHeader instance