From 249df198dc095775e61b363d352fc54442279a7a Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 19 Oct 2010 22:29:19 +0200 Subject: [PATCH] =?utf8?q?Rename=20=E2=80=9CgetURI()=E2=80=9D=20method=20t?= =?utf8?q?o=20=E2=80=9CgetUri()=E2=80=9D.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/web/page/Page.java | 2 +- src/main/java/net/pterodactylus/sone/web/page/StaticPage.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.7.4