aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/moe/ymc/acron/net/AcronInitializer.java
diff options
context:
space:
mode:
authorTrumeet <yuuta@yuuta.moe>2022-07-26 19:06:11 -0700
committerTrumeet <yuuta@yuuta.moe>2022-07-26 19:06:11 -0700
commitd8fe269327a1a51f2588a3573a4764613da16388 (patch)
tree97bd20983700bb13eba7f7d524d3c6d529303b46 /src/main/java/moe/ymc/acron/net/AcronInitializer.java
parent31a5d2990ba666ce5ef4a1f79f7999a9bdfaac2a (diff)
downloadacron-d8fe269327a1a51f2588a3573a4764613da16388.tar
acron-d8fe269327a1a51f2588a3573a4764613da16388.tar.gz
acron-d8fe269327a1a51f2588a3573a4764613da16388.tar.bz2
acron-d8fe269327a1a51f2588a3573a4764613da16388.zip
Move the mod to mod/
Diffstat (limited to 'src/main/java/moe/ymc/acron/net/AcronInitializer.java')
-rw-r--r--src/main/java/moe/ymc/acron/net/AcronInitializer.java25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/main/java/moe/ymc/acron/net/AcronInitializer.java b/src/main/java/moe/ymc/acron/net/AcronInitializer.java
deleted file mode 100644
index c9953e3..0000000
--- a/src/main/java/moe/ymc/acron/net/AcronInitializer.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package moe.ymc.acron.net;
-
-import io.netty.channel.ChannelInitializer;
-import io.netty.channel.socket.SocketChannel;
-import io.netty.handler.codec.http.HttpObjectAggregator;
-import io.netty.handler.codec.http.HttpServerCodec;
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
-
-/**
- * A channel initializer for all Acron handlers.
- */
-public class AcronInitializer extends ChannelInitializer<SocketChannel> {
- private static final Logger LOGGER = LogManager.getLogger();
-
- @Override
- protected void initChannel(SocketChannel ch) throws Exception {
- LOGGER.debug("initChannel");
- ch.pipeline()
- .addLast(new HttpServerCodec())
- .addLast(new HttpObjectAggregator(65536))
- .addLast(new AuthHandler())
- ;
- }
-}