use of org.apache.mina.filter.codec.ProtocolDecoder in project directory-ldap-api by apache.
the class AbstractCodecServiceTest method setupLdapCodecService.
/**
* Initialize the codec service
*/
@BeforeClass
public static void setupLdapCodecService() {
codec = new DefaultLdapCodecService();
codec.registerProtocolCodecFactory(new ProtocolCodecFactory() {
public ProtocolEncoder getEncoder(IoSession session) throws Exception {
return null;
}
public ProtocolDecoder getDecoder(IoSession session) throws Exception {
return null;
}
});
if (LdapApiServiceFactory.isInitialized() == false) {
LdapApiServiceFactory.initialize(codec);
}
encoder = new LdapEncoder(codec);
}
Aggregations