Examples of subUriPath()


Examples of org.apache.slide.common.UriPath.subUriPath()

                // cacheResolve(currentUri, currentResourceId);
                // TODO: make it work with caching here :-(
               
                ObjectNode objectNode = currentResourceId.getStore().retrieveObject(currentResourceId);
                objectNode.setUri(currentUriStr);
                currentUriStr = uriPath.subUriPath(0, i + 1).toString();
                currentUri = new Uri(uri.getToken(), uri.getNamespace(), currentUriStr);
                String currentUuri = objectNode.getBindingUuri(segments[i]);
                if (currentUuri == null) {
                    throw new ObjectNotFoundException(currentUriStr);
                }
View Full Code Here

Examples of org.apache.slide.common.UriPath.subUriPath()

                // cacheResolve(currentUri, currentResourceId);
                // TODO: make it work with caching here :-(
               
                ObjectNode objectNode = currentResourceId.getStore().retrieveObject(currentResourceId);
                objectNode.setUri(currentUriStr);
                currentUriStr = uriPath.subUriPath(0, i + 1).toString();
                currentUri = new Uri(uri.getToken(), uri.getNamespace(), currentUriStr);
                String currentUuri = objectNode.getBindingUuri(segments[i]);
                if (currentUuri == null) {
                    throw new ObjectNotFoundException(currentUriStr);
                }
View Full Code Here

Examples of org.apache.slide.common.UriPath.subUriPath()

                // cacheResolve(currentUri, currentResourceId);
                // TODO: make it work with caching here :-(
               
                ObjectNode objectNode = currentResourceId.getStore().retrieveObject(currentResourceId);
                objectNode.setUri(currentUriStr);
                currentUriStr = uriPath.subUriPath(0, i + 1).toString();
                currentUri = new Uri(uri.getToken(), uri.getNamespace(), currentUriStr);
                String currentUuri = objectNode.getBindingUuri(segments[i]);
                if (currentUuri == null) {
                    throw new ObjectNotFoundException(currentUriStr);
                }
View Full Code Here

Examples of org.apache.slide.common.UriPath.subUriPath()

                // cacheResolve(currentUri, currentResourceId);
                // TODO: make it work with caching here :-(
               
                // call super such that e.g. caching can take place
                ObjectNode objectNode = super.retrieveObject(currentResourceId);
                currentUriStr = uriPath.subUriPath(0, i + 1).toString();
                currentUri = new Uri(uri.getToken(), uri.getNamespace(), currentUriStr);
                String currentUuri = objectNode.getBindingUuri(segments[i]);
                if (currentUuri == null) {
                    throw new ObjectNotFoundException(currentUriStr);
                }
View Full Code Here

Examples of org.apache.slide.common.UriPath.subUriPath()

        UriPath uriPath = new UriPath(uri.toString());
        String[] segments = uriPath.tokens();
        int start = new UriPath(uri.getScope().toString()).tokens().length;
       
        for (int i = start; i < segments.length; i++) {
            String currentUriStr = uriPath.subUriPath(0, i).toString();
            Uri currentUri = new Uri(uri.getToken(), uri.getNamespace(), currentUriStr);
//            ResourceId currentResourceId = obtainResourceId(currentUri);
            ResourceId currentResourceId = checkResolveCache(currentUri);
            if (currentResourceId == null) {
                currentResourceId = obtainResourceId(currentUri);
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.