X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpage%2FPageToadletFactory.java;h=719b74a4036a56ad6285f14b9e588b53bab199de;hp=af87470e47018db27715c46057c196508449aaba;hb=e7afeda8d0658bd4c392803cf444f5810fe18471;hpb=b2bc9337f91c303e2700f001c785e8b14a9990ec diff --git a/src/main/java/net/pterodactylus/sone/web/page/PageToadletFactory.java b/src/main/java/net/pterodactylus/sone/web/page/PageToadletFactory.java index af87470..719b74a 100644 --- a/src/main/java/net/pterodactylus/sone/web/page/PageToadletFactory.java +++ b/src/main/java/net/pterodactylus/sone/web/page/PageToadletFactory.java @@ -1,5 +1,5 @@ /* - * shortener - PageToadletFactory.java - Copyright © 2010 David Roden + * Sone - PageToadletFactory.java - Copyright © 2010–2019 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,13 +17,12 @@ package net.pterodactylus.sone.web.page; +import net.pterodactylus.util.web.Page; import freenet.client.HighLevelSimpleClient; /** * Factory that creates {@link PageToadlet}s using a given * {@link HighLevelSimpleClient}. - * - * @author David ‘Bombe’ Roden */ public class PageToadletFactory { @@ -35,7 +34,7 @@ public class PageToadletFactory { /** * Creates a new {@link PageToadlet} factory. - * + * * @param highLevelSimpleClient * The client to use when creating the toadlets * @param pathPrefix @@ -49,26 +48,26 @@ public class PageToadletFactory { /** * Creates a {@link PageToadlet} that wraps the given page and does not * appear in the node’s menu. - * + * * @param page * The page to wrap * @return The toadlet wrapped around the page */ - public PageToadlet createPageToadlet(Page page) { + public PageToadlet createPageToadlet(Page page) { return createPageToadlet(page, null); } /** * Creates a {@link PageToadlet} that wraps the given page and appears in * the node’s menu under the given name. - * + * * @param page * The page to wrap * @param menuName * The name of the menu item * @return The toadlet wrapped around the page */ - public PageToadlet createPageToadlet(Page page, String menuName) { + public PageToadlet createPageToadlet(Page page, String menuName) { return new PageToadlet(highLevelSimpleClient, menuName, page, pathPrefix); }