static int maxDepth()

in src/main/java/org/apache/sling/clam/http/internal/RequestUtil.java [94:105]


    static int maxDepth(@NotNull final SlingHttpServletRequest request, final int defaultMaxDepth) throws Exception {
        final String value = request.getParameter("maxDepth");
        if (value == null) {
            return defaultMaxDepth;
        } else {
            try {
                return Integer.parseInt(value);
            } catch (Exception e) {
                throw new Exception("Invalid parameter value for maxDepth: " + value);
            }
        }
    }