/**
* {@link Toadlet} implementation that is wrapped around a {@link Page}.
- *
+ *
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class PageToadlet extends Toadlet implements LinkEnabledCallback {
/**
* Creates a new toadlet that hands off processing to a {@link Page}.
- *
+ *
* @param highLevelSimpleClient
* @param menuName
* The name of the menu item
/**
* Returns the name to display in the menu.
- *
+ *
* @return The name in the menu
*/
public String getMenuName() {
/**
* Handles a HTTP GET request.
- *
+ *
* @param uri
* The URI of the request
* @param httpRequest
/**
* Handles a HTTP POST request.
- *
+ *
* @param uri
* The URI of the request
* @param httpRequest
/**
* Handles a HTTP request.
- *
+ *
* @param pageRequest
* The request to handle
* @throws IOException
/**
* Base class for all {@link Page}s that are rendered with {@link Template}s.
- *
+ *
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class TemplatePage implements Page, LinkEnabledCallback {
/**
* Creates a new template page.
- *
+ *
* @param path
* The path of the page
* @param template
/**
* Can be overridden to return a custom set of style sheets that are to be
* included in the page’s header.
- *
+ *
* @return Additional style sheets to load
*/
protected Collection<String> getStyleSheets() {
/**
* Can be overridden when extending classes need to set variables in the
* template before it is rendered.
- *
+ *
* @param request
* The request that is rendered
* @param template
/**
* Can be overridden to redirect the user to a different page, in case a log
* in is required, or something else is wrong.
- *
+ *
* @param request
* The request that is processed
* @return The URL to redirect to, or {@code null} to not redirect