import net.pterodactylus.util.template.TemplateException;
import net.pterodactylus.util.template.TemplateFactory;
import net.pterodactylus.util.template.TemplateProvider;
-import freenet.clients.http.LinkEnabledCallback;
import freenet.clients.http.SessionManager;
import freenet.clients.http.ToadletContainer;
-import freenet.clients.http.ToadletContext;
import freenet.l10n.BaseL10n;
/**
}
/**
- * {@link LinkEnabledCallback} implementation that always returns
- * {@code true} when {@link LinkEnabledCallback#isEnabled(ToadletContext)}
- * is called.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
- */
- public class AlwaysEnabledCallback implements LinkEnabledCallback {
-
- /**
- * {@inheritDoc}
- */
- @Override
- public boolean isEnabled(ToadletContext toadletContext) {
- return true;
- }
- }
-
- /**
* Template provider implementation that uses
* {@link WebInterface#createReader(String)} to load templates for
* inclusion.