Examples of RecursionTooDeepException


Examples of org.apache.sling.api.request.RecursionTooDeepException

    // ---------- Content inclusion stacking -----------------------------------

    public ContentData setContent(final Resource resource,
            final RequestPathInfo requestPathInfo) {
        if ( this.recursionDepth >=  maxInclusionCounter) {
            throw new RecursionTooDeepException(requestPathInfo.getResourcePath());
        }
        this.recursionDepth++;
        if (this.recursionDepth > this.peakRecusionDepth) {
            this.peakRecusionDepth = this.recursionDepth;
        }
View Full Code Here

Examples of org.apache.sling.api.request.RecursionTooDeepException

        BufferProvider parent;
        if (currentContentData != null) {
            if (contentDataStack == null) {
                contentDataStack = new LinkedList<ContentData>();
            } else if (contentDataStack.size() >= maxInclusionCounter) {
                throw new RecursionTooDeepException(
                    requestPathInfo.getResourcePath());
            }

            // set the request attributes of the include content data
            servletRequest.setAttribute(ATTR_REQUEST_CONTENT,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.