Class DepthHeader

    • Constructor Detail

      • 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 Detail

      • getDepth

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

        public static DepthHeader parse​(javax.servlet.http.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