From: David ‘Bombe’ Roden Date: Wed, 13 Oct 2010 11:49:35 +0000 (+0200) Subject: Implement link-enabled callback interface. X-Git-Tag: 0.1-RC1~494 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e3cd6bfb5d34bbd5f5f54672793ddf04732f279d;p=Sone.git Implement link-enabled callback interface. --- diff --git a/src/main/java/net/pterodactylus/sone/web/page/TemplatePage.java b/src/main/java/net/pterodactylus/sone/web/page/TemplatePage.java index 7e478e7..73a3057 100644 --- a/src/main/java/net/pterodactylus/sone/web/page/TemplatePage.java +++ b/src/main/java/net/pterodactylus/sone/web/page/TemplatePage.java @@ -22,6 +22,7 @@ import java.util.Collection; import java.util.Collections; import net.pterodactylus.util.template.Template; +import freenet.clients.http.LinkEnabledCallback; import freenet.clients.http.PageMaker; import freenet.clients.http.PageNode; import freenet.clients.http.ToadletContext; @@ -32,7 +33,7 @@ import freenet.l10n.BaseL10n; * * @author David ‘Bombe’ Roden */ -public class TemplatePage implements Page { +public class TemplatePage implements Page, LinkEnabledCallback { /** The path of the page. */ private final String path; @@ -133,4 +134,16 @@ public class TemplatePage implements Page { return null; } + // + // INTERFACE LinkEnabledCallback + // + + /** + * {@inheritDoc} + */ + @Override + public boolean isEnabled(ToadletContext toadletContext) { + return true; + } + }