From c3d8e01e4323863c3107062270ffeaf2d0a35792 Mon Sep 17 00:00:00 2001
From: Gabriel Landais <glandais@kereval.com>
Date: Tue, 9 Aug 2011 09:58:03 +0000
Subject: [PATCH] New HL7 frame decoder

git-svn-id: https://scm.gforge.inria.fr/authscm/ycadoret/svn/gazelle/Maven/gazelle-proxy/trunk@23356 356b4b1a-1d2b-0410-8bf1-ffa24008f01e
---
 gazelle-proxy-netty/pom.xml                                 | 1 +
 .../gazelle/proxy/netty/protocols/hl7/HL7ProxyConfig.java   | 6 ------
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/gazelle-proxy-netty/pom.xml b/gazelle-proxy-netty/pom.xml
index adbccf3d..bbd30304 100644
--- a/gazelle-proxy-netty/pom.xml
+++ b/gazelle-proxy-netty/pom.xml
@@ -32,6 +32,7 @@
 			<groupId>ca.uhn.hapi</groupId>
 			<artifactId>hapi-base</artifactId>
 			<version>1.2</version>
+			<scope>provided</scope>
 		</dependency>
 		<dependency>
 			<groupId>jp.digitalsensation.ihej.transactionmonitor</groupId>
diff --git a/gazelle-proxy-netty/src/main/java/net/ihe/gazelle/proxy/netty/protocols/hl7/HL7ProxyConfig.java b/gazelle-proxy-netty/src/main/java/net/ihe/gazelle/proxy/netty/protocols/hl7/HL7ProxyConfig.java
index 04cba67d..80ca214a 100644
--- a/gazelle-proxy-netty/src/main/java/net/ihe/gazelle/proxy/netty/protocols/hl7/HL7ProxyConfig.java
+++ b/gazelle-proxy-netty/src/main/java/net/ihe/gazelle/proxy/netty/protocols/hl7/HL7ProxyConfig.java
@@ -8,8 +8,6 @@ import net.ihe.gazelle.proxy.netty.ProxyEventListener;
 import net.ihe.gazelle.proxy.netty.channel.ProxySide;
 import net.ihe.gazelle.proxy.netty.protocols.tls.TlsConfig;
 
-import org.jboss.netty.buffer.ChannelBuffer;
-import org.jboss.netty.buffer.ChannelBuffers;
 import org.jboss.netty.channel.Channel;
 import org.jboss.netty.channel.ChannelHandler;
 import org.jboss.netty.channel.socket.ClientSocketChannelFactory;
@@ -30,10 +28,6 @@ public class HL7ProxyConfig extends ProxyConfigAbstract<String, String> {
 		return channels;
 	}
 
-	public static ChannelBuffer[] getHL7Delimiter() {
-		return new ChannelBuffer[] { ChannelBuffers.wrappedBuffer(new byte[] { 0x0d, 0x1c }) };
-	}
-
 	public List<ChannelHandler> getResponseDecoderChannels() {
 		return getRequestDecoderChannels();
 	}
-- 
GitLab