Rename “getURI()” method to “getUri()”.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 19 Oct 2010 20:29:19 +0000 (22:29 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 19 Oct 2010 20:29:19 +0000 (22:29 +0200)
src/main/java/net/pterodactylus/sone/web/page/Page.java
src/main/java/net/pterodactylus/sone/web/page/StaticPage.java

index 195742b..dd54f41 100644 (file)
@@ -125,7 +125,7 @@ public interface Page {
                 *
                 * @return The accessed URI
                 */
-               public URI getURI() {
+               public URI getUri() {
                        return uri;
                }
 
index 7bff1e1..223d66b 100644 (file)
@@ -64,7 +64,7 @@ public class StaticPage implements Page {
         */
        @Override
        public Response handleRequest(Request request) {
-               String path = request.getURI().getPath();
+               String path = request.getUri().getPath();
                int lastSlash = path.lastIndexOf('/');
                String filename = path.substring(lastSlash + 1);
                InputStream fileInputStream = getClass().getResourceAsStream(resourcePathPrefix + filename);