Package org.openqa.selenium.server

Source Code of org.openqa.selenium.server.ClasspathResourceLocator

package org.openqa.selenium.server;

import java.io.IOException;

import org.openqa.jetty.http.HttpContext;
import org.openqa.jetty.util.Resource;

public class ClasspathResourceLocator implements ResourceLocator {

    public Resource getResource(HttpContext context, String pathInContext) throws IOException {
        Resource resource = new ClassPathResource(pathInContext);
        context.getResourceMetaData(resource);
        return resource;
    }

}
TOP

Related Classes of org.openqa.selenium.server.ClasspathResourceLocator

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.