fun requiresLogin() = requiresLogin
- override public fun getPageTitle(request: FreenetRequest) = getPageTitle(request.toSoneRequest(core, webInterface))
+ override fun getPageTitle(request: FreenetRequest) = getPageTitle(request.toSoneRequest(core, webInterface))
open fun getPageTitle(soneRequest: SoneRequest) = pageTitle(soneRequest)
override val shortcutIcon = "images/icon.png"
- override public fun getAdditionalLinkNodes(request: FreenetRequest) =
+ override fun getAdditionalLinkNodes(request: FreenetRequest) =
listOf(mapOf(
"rel" to "search",
"type" to "application/opensearchdescription+xml",
"href" to "http://${request.httpRequest.getHeader("host")}/Sone/OpenSearch.xml"
))
- final override public fun processTemplate(request: FreenetRequest, templateContext: TemplateContext) {
+ final override fun processTemplate(request: FreenetRequest, templateContext: TemplateContext) {
super.processTemplate(request, templateContext)
templateContext["preferences"] = core.preferences
templateContext["currentSone"] = getCurrentSone(request.toadletContext)
open fun handleRequest(soneRequest: SoneRequest, templateContext: TemplateContext) {
}
- override public fun getRedirectTarget(request: FreenetRequest): String? {
+ override fun getRedirectTarget(request: FreenetRequest): String? {
if (requiresLogin && getCurrentSone(request.toadletContext) == null) {
val parameters = request.httpRequest.parameterNames
.flatMap { name -> request.httpRequest.getMultipleParam(name).map { name to it } }