package com.ikasoa.core.thrift.protocol;

import org.apache.thrift.protocol.TProtocol;
import org.apache.thrift.protocol.TProtocolFactory;
import org.apache.thrift.transport.TTransport;

import com.ikasoa.core.security.impl.RC4EncryptImpl;

/**
 * 基于RC4加密的序列化工厂
 * 
 * @author <a href="mailto:larry7696@gmail.com">Larry</a>
 * @version 0.5.4
 */
public class RC4CompactProtocolFactory extends SecurityCompactProtocol.Factory implements TProtocolFactory {

	private static final long serialVersionUID = 1L;

	public RC4CompactProtocolFactory(String key) {
		super(key, new RC4EncryptImpl());
	}

	public TProtocol getProtocol(TTransport trans) {
		return new SecurityCompactProtocol(trans, key_, encrypt_);
	}

}
@@ -588,16 +588,27 @@
 ));%0A%09%7D%0A%0A
+%09@Override%0A
 %09public 
@@ -715,8 +715,9 @@
 );%0A%09%7D%0A%0A%7D
+%0A

Update RC4CompactProtocolFactory.java