use of org.apache.directory.api.ldap.codec.osgi.DefaultLdapCodecService 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);
}
use of org.apache.directory.api.ldap.codec.osgi.DefaultLdapCodecService in project directory-ldap-api by apache.
the class AbstractCodecServiceTest method setupLdapCodecService.
/**
* Initialize the codec service
*/
@BeforeClass
public static void setupLdapCodecService() {
codec = new DefaultLdapCodecService();
encoder = new LdapEncoder(codec);
}
Aggregations