Webiyo

This page was generated using Webiyo. See its source code and unit tests.

org/webiyo/examples/viewjava/ViewJavaLocations.java

package org.webiyo.examples.viewjava;

import org.webiyo.web.Location;

public class ViewJavaLocations {

    public static final String BASE = "VIEWJAVA_BASE";

    public static final Location INDEX = new Location(BASE, "index.html");
    public static final Location STYLESHEET = new Location(BASE, "style.css");

    public static Location getSourcePageLocation(SourceFile sourceFile) {
        return new Location(BASE, sourceFile.getPath().replaceAll("\\.java$", ".html"));
    }
}
SourceForge