X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FGetImagePage.kt;h=f939456a360add371c5a4fd2f256e27351f0d3c7;hp=3e9eed07f60b3990383480d6e00def3ab999a6bf;hb=a76956e389fcfe6282ad4ca7156bbf76327bb0c0;hpb=e9e8f21fdfe533e8946a64d53dabaf48c3c296c3 diff --git a/src/main/kotlin/net/pterodactylus/sone/web/pages/GetImagePage.kt b/src/main/kotlin/net/pterodactylus/sone/web/pages/GetImagePage.kt index 3e9eed0..f939456 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/pages/GetImagePage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/pages/GetImagePage.kt @@ -1,17 +1,17 @@ package net.pterodactylus.sone.web.pages -import net.pterodactylus.sone.web.WebInterface -import net.pterodactylus.sone.web.page.FreenetPage -import net.pterodactylus.sone.web.page.FreenetRequest -import net.pterodactylus.util.web.Response -import java.net.URI +import net.pterodactylus.sone.web.* +import net.pterodactylus.sone.web.page.* +import net.pterodactylus.util.web.* +import java.net.* +import javax.inject.* /** * Page that delivers a {@link TemporaryImage} to the browser. */ -class GetImagePage(webInterface: WebInterface): FreenetPage { +class GetImagePage @Inject constructor(webInterface: WebInterface): FreenetPage { - private val core = webInterface.core!! + private val core = webInterface.core override fun getPath(): String { return "getImage.html" @@ -35,7 +35,7 @@ class GetImagePage(webInterface: WebInterface): FreenetPage { } } - override fun isLinkExcepted(link: URI?): Boolean { + override fun isLinkExcepted(link: URI): Boolean { return false }