Package webit.script.loaders.impl.resources

Examples of webit.script.loaders.impl.resources.FileResource


    public Resource get(String path) {
        path = getRealPath(path);
        final String filepath = servletContext.getRealPath(path);
        if (filepath != null) {
            return new FileResource(filepath, encoding);
        }
        return new ServletContextResource(path, encoding, servletContext);
    }
View Full Code Here


* @author Zqq
*/
public class FileLoader extends AbstractLoader {

    public Resource get(String name) {
        return new FileResource(getRealPath(name), encoding);
    }
View Full Code Here

TOP

Related Classes of webit.script.loaders.impl.resources.FileResource

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.