Signed-off-by: Graham <gpe@openrs2.org>
@ -12,7 +12,7 @@ import org.openrs2.buffer.use
import org.openrs2.game.net.http.Http
@ChannelHandler.Sharable
public object CrossDomainChannelHandler : SimpleChannelInboundHandler<HttpRequest>() {
public object CrossDomainChannelHandler : SimpleChannelInboundHandler<HttpRequest>(HttpRequest::class.java) {
private const val ENDPOINT = "/crossdomain.xml"
private val POLICY = """
<?xml version="1.0"?>
@ -16,7 +16,7 @@ import javax.inject.Singleton
public class HttpChannelHandler @Inject constructor(
private val fileProvider: FileProvider
) : SimpleChannelInboundHandler<HttpRequest>() {
) : SimpleChannelInboundHandler<HttpRequest>(HttpRequest::class.java) {
override fun channelActive(ctx: ChannelHandlerContext) {
ctx.read()
}
@ -15,7 +15,7 @@ import javax.inject.Singleton
public class JaggrabChannelHandler @Inject constructor(
) : SimpleChannelInboundHandler<JaggrabRequest>() {
) : SimpleChannelInboundHandler<JaggrabRequest>(JaggrabRequest::class.java) {
override fun handlerAdded(ctx: ChannelHandlerContext) {
@ -9,7 +9,7 @@ import javax.inject.Inject
public class Js5ChannelHandler @Inject constructor(
private val service: Js5Service
) : SimpleChannelInboundHandler<Js5Request>() {
) : SimpleChannelInboundHandler<Js5Request>(Js5Request::class.java) {
private lateinit var client: Js5Client
@ -29,7 +29,7 @@ import javax.inject.Provider
public class LoginChannelHandler @Inject constructor(
private val js5HandlerProvider: Provider<Js5ChannelHandler>,
private val jaggrabHandler: JaggrabChannelHandler
) : SimpleChannelInboundHandler<LoginRequest>() {
) : SimpleChannelInboundHandler<LoginRequest>(LoginRequest::class.java) {