Code example for AbstractController

0
 */ 
public class ClasspathPublisher extends AbstractURLPublisher { 
    Class clazz;
 
    /** 
     * Creates the new classpath publisher. 
     *  
     * @param clazz the class used to perform classpath lookups with 
     *        {@link Class#getResource(String)} 
     */ 
    public ClasspathPublisher(Class clazz) {
        this.clazz = clazz;
    } 
 
    public ClasspathPublisher() { 
        this.clazz = ClasspathPublisher.class;
    } 
 
    @Override 
    protected URL getUrl(HttpServletRequest request) {