From f4d6970e87b0f9f61dc0027e0a37187551c15475 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Sat, 21 Jun 2014 13:48:13 +0900 Subject: [PATCH] Move haproxy codec to a separate module --- all/pom.xml | 18 ++++++++- codec-haproxy/pom.xml | 39 +++++++++++++++++++ .../codec/haproxy/HAProxyProtocolCommand.java | 0 .../codec/haproxy/HAProxyProtocolDecoder.java | 0 .../haproxy/HAProxyProtocolException.java | 0 .../codec/haproxy/HAProxyProtocolMessage.java | 0 .../codec/haproxy/HAProxyProtocolVersion.java | 0 .../codec/haproxy/ProxiedAddressFamily.java | 0 .../haproxy/ProxiedProtocolAndFamily.java | 0 .../haproxy/ProxiedTransportProtocol.java | 0 .../handler/codec/haproxy/package-info.java | 0 .../haproxy/HAProxyProtocolDecoderTest.java | 2 - pom.xml | 1 + 13 files changed, 56 insertions(+), 4 deletions(-) create mode 100644 codec-haproxy/pom.xml rename {codec => codec-haproxy}/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolCommand.java (100%) rename {codec => codec-haproxy}/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolDecoder.java (100%) rename {codec => codec-haproxy}/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolException.java (100%) rename {codec => codec-haproxy}/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolMessage.java (100%) rename {codec => codec-haproxy}/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolVersion.java (100%) rename {codec => codec-haproxy}/src/main/java/io/netty/handler/codec/haproxy/ProxiedAddressFamily.java (100%) rename {codec => codec-haproxy}/src/main/java/io/netty/handler/codec/haproxy/ProxiedProtocolAndFamily.java (100%) rename {codec => codec-haproxy}/src/main/java/io/netty/handler/codec/haproxy/ProxiedTransportProtocol.java (100%) rename {codec => codec-haproxy}/src/main/java/io/netty/handler/codec/haproxy/package-info.java (100%) rename {codec => codec-haproxy}/src/test/java/io/netty/handler/codec/haproxy/HAProxyProtocolDecoderTest.java (99%) diff --git a/all/pom.xml b/all/pom.xml index 18ec1f9619..a0793f9a3b 100644 --- a/all/pom.xml +++ b/all/pom.xml @@ -119,6 +119,20 @@ compile true + + ${project.groupId} + netty-codec-dns + ${project.version} + compile + true + + + ${project.groupId} + netty-codec-haproxy + ${project.version} + compile + true + ${project.groupId} netty-codec-http @@ -128,14 +142,14 @@ ${project.groupId} - netty-codec-socks + netty-codec-memcache ${project.version} compile true ${project.groupId} - netty-codec-memcache + netty-codec-socks ${project.version} compile true diff --git a/codec-haproxy/pom.xml b/codec-haproxy/pom.xml new file mode 100644 index 0000000000..0d1c876a14 --- /dev/null +++ b/codec-haproxy/pom.xml @@ -0,0 +1,39 @@ + + + + + 4.0.0 + + io.netty + netty-parent + 5.0.0.Alpha2-SNAPSHOT + + + netty-codec-haproxy + jar + + Netty/Codec/HAProxy + + + + ${project.groupId} + netty-codec + ${project.version} + + + + diff --git a/codec/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolCommand.java b/codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolCommand.java similarity index 100% rename from codec/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolCommand.java rename to codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolCommand.java diff --git a/codec/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolDecoder.java b/codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolDecoder.java similarity index 100% rename from codec/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolDecoder.java rename to codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolDecoder.java diff --git a/codec/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolException.java b/codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolException.java similarity index 100% rename from codec/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolException.java rename to codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolException.java diff --git a/codec/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolMessage.java b/codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolMessage.java similarity index 100% rename from codec/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolMessage.java rename to codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolMessage.java diff --git a/codec/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolVersion.java b/codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolVersion.java similarity index 100% rename from codec/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolVersion.java rename to codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyProtocolVersion.java diff --git a/codec/src/main/java/io/netty/handler/codec/haproxy/ProxiedAddressFamily.java b/codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/ProxiedAddressFamily.java similarity index 100% rename from codec/src/main/java/io/netty/handler/codec/haproxy/ProxiedAddressFamily.java rename to codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/ProxiedAddressFamily.java diff --git a/codec/src/main/java/io/netty/handler/codec/haproxy/ProxiedProtocolAndFamily.java b/codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/ProxiedProtocolAndFamily.java similarity index 100% rename from codec/src/main/java/io/netty/handler/codec/haproxy/ProxiedProtocolAndFamily.java rename to codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/ProxiedProtocolAndFamily.java diff --git a/codec/src/main/java/io/netty/handler/codec/haproxy/ProxiedTransportProtocol.java b/codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/ProxiedTransportProtocol.java similarity index 100% rename from codec/src/main/java/io/netty/handler/codec/haproxy/ProxiedTransportProtocol.java rename to codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/ProxiedTransportProtocol.java diff --git a/codec/src/main/java/io/netty/handler/codec/haproxy/package-info.java b/codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/package-info.java similarity index 100% rename from codec/src/main/java/io/netty/handler/codec/haproxy/package-info.java rename to codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/package-info.java diff --git a/codec/src/test/java/io/netty/handler/codec/haproxy/HAProxyProtocolDecoderTest.java b/codec-haproxy/src/test/java/io/netty/handler/codec/haproxy/HAProxyProtocolDecoderTest.java similarity index 99% rename from codec/src/test/java/io/netty/handler/codec/haproxy/HAProxyProtocolDecoderTest.java rename to codec-haproxy/src/test/java/io/netty/handler/codec/haproxy/HAProxyProtocolDecoderTest.java index c39359fef0..f91b143d46 100644 --- a/codec/src/test/java/io/netty/handler/codec/haproxy/HAProxyProtocolDecoderTest.java +++ b/codec-haproxy/src/test/java/io/netty/handler/codec/haproxy/HAProxyProtocolDecoderTest.java @@ -15,11 +15,9 @@ */ package io.netty.handler.codec.haproxy; -import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelFuture; import io.netty.channel.embedded.EmbeddedChannel; import io.netty.util.CharsetUtil; - import org.junit.Before; import org.junit.Test; diff --git a/pom.xml b/pom.xml index a215f129fb..12dc8c5f0d 100644 --- a/pom.xml +++ b/pom.xml @@ -336,6 +336,7 @@ buffer codec codec-dns + codec-haproxy codec-http codec-http2 codec-memcache