From: David ‘Bombe’ Roden Date: Tue, 19 Oct 2010 20:29:19 +0000 (+0200) Subject: Rename “getURI()” method to “getUri()”. X-Git-Tag: 0.1-RC1~174 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=249df198dc095775e61b363d352fc54442279a7a;p=Sone.git Rename “getURI()” method to “getUri()”. --- diff --git a/src/main/java/net/pterodactylus/sone/web/page/Page.java b/src/main/java/net/pterodactylus/sone/web/page/Page.java index 195742b..dd54f41 100644 --- a/src/main/java/net/pterodactylus/sone/web/page/Page.java +++ b/src/main/java/net/pterodactylus/sone/web/page/Page.java @@ -125,7 +125,7 @@ public interface Page { * * @return The accessed URI */ - public URI getURI() { + public URI getUri() { return uri; } diff --git a/src/main/java/net/pterodactylus/sone/web/page/StaticPage.java b/src/main/java/net/pterodactylus/sone/web/page/StaticPage.java index 7bff1e1..223d66b 100644 --- a/src/main/java/net/pterodactylus/sone/web/page/StaticPage.java +++ b/src/main/java/net/pterodactylus/sone/web/page/StaticPage.java @@ -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);