Package com.day.cq.widget

Examples of com.day.cq.widget.HtmlLibrary


    private String getVersionedPath(final String originalPath, final LibraryType libraryType) {
        try {
            final PathInfo pathInfo = new PathInfo(originalPath);

            final HtmlLibrary htmlLibrary = htmlLibraryManager.getLibrary(libraryType, pathInfo.getResourcePath());

            if (htmlLibrary != null) {
                StringBuilder builder = new StringBuilder();
                builder.append(htmlLibrary.getLibraryPath());
                builder.append(".");

                String selector = pathInfo.getSelectorString();
                if (selector != null) {
                    builder.append(selector).append(".");
                }
                builder.append(DigestUtils.md5Hex(htmlLibrary.getInputStream()));
                builder.append(libraryType.extension);

                return builder.toString();
            } else {
                log.debug("Could not find HtmlLibrary at path: {}", pathInfo.getResourcePath());
View Full Code Here

TOP

Related Classes of com.day.cq.widget.HtmlLibrary

Copyright © 2018 www.massapicom. 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.