package com.eactive.eai.adapter.socket2.protocol.append;

import com.eactive.eai.adapter.socket2.config.SocketAdapterContext;
import com.eactive.eai.adapter.socket2.protocol.TcpAdapterServer;
import com.eactive.eai.adapter.socket2.protocol.append.codec.AppendCodecFactory;
import org.apache.mina.filter.codec.ProtocolCodecFilter;


public class AppendServer extends TcpAdapterServer {

	public AppendServer(SocketAdapterContext context) throws Exception {
		super(context);

		this.handler = new AppendHandler(this);
		
		config.getFilterChain().addFirst("codec", new ProtocolCodecFilter(new AppendCodecFactory(this)));
	}
}
