本文整理了Java中org.apache.directory.ldap.client.api.LdapConnection.getCodecService()
方法的一些代码示例,展示了LdapConnection.getCodecService()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LdapConnection.getCodecService()
方法的具体详情如下:
包路径:org.apache.directory.ldap.client.api.LdapConnection
类名称:LdapConnection
方法名:getCodecService
[英]Gets the LDAP CODEC service responsible for encoding and decoding messages.
[中]获取负责编码和解码消息的LDAP编解码器服务。
代码示例来源:origin: org.apache.directory.api/api-all
/**
* {@inheritDoc}
*/
@Override
public LdapApiService getCodecService()
{
return connection.getCodecService();
}
代码示例来源:origin: org.apache.directory.api/api-ldap-client-api
/**
* {@inheritDoc}
*/
@Override
public LdapApiService getCodecService()
{
return connection.getCodecService();
}
代码示例来源:origin: org.apache.directory.api/api-ldap-client-all
/**
* {@inheritDoc}
*/
@Override
public LdapApiService getCodecService()
{
return connection.getCodecService();
}
代码示例来源:origin: org.apache.directory.api/api-all
AddResponse response = connection.add( ( AddRequest ) request );
resultCode = response.getLdapResult().getResultCode();
AddResponseDsml addResponseDsml = new AddResponseDsml( connection.getCodecService(), response );
writeResponse( respWriter, addResponseDsml );
BindResponse bindResponse = connection.bind( ( BindRequest ) request );
resultCode = bindResponse.getLdapResult().getResultCode();
BindResponseDsml authResponseDsml = new BindResponseDsml( connection.getCodecService(), bindResponse );
writeResponse( respWriter, authResponseDsml );
CompareResponse compareResponse = connection.compare( ( CompareRequest ) request );
resultCode = compareResponse.getLdapResult().getResultCode();
CompareResponseDsml compareResponseDsml = new CompareResponseDsml( connection.getCodecService(),
compareResponse );
writeResponse( respWriter, compareResponseDsml );
DeleteResponse delResponse = connection.delete( ( DeleteRequest ) request );
resultCode = delResponse.getLdapResult().getResultCode();
DelResponseDsml delResponseDsml = new DelResponseDsml( connection.getCodecService(), delResponse );
writeResponse( respWriter, delResponseDsml );
ExtendedResponse extendedResponse = connection.extended( ( ExtendedRequest ) request );
resultCode = extendedResponse.getLdapResult().getResultCode();
ExtendedResponseDsml extendedResponseDsml = new ExtendedResponseDsml( connection.getCodecService(),
extendedResponse );
writeResponse( respWriter, extendedResponseDsml );
ModifyResponse modifyResponse = connection.modify( ( ModifyRequest ) request );
resultCode = modifyResponse.getLdapResult().getResultCode();
代码示例来源:origin: apache/jackrabbit-oak
private SearchRequest createSearchRequest(LdapConnection connection, byte[] cookie, @NotNull String[] userAttributes) throws LdapException {
SearchRequest req = new SearchRequestImpl();
req.setScope(SearchScope.SUBTREE);
if (userAttributes.length == 0) {
req.addAttributes(SchemaConstants.ALL_USER_ATTRIBUTES);
} else {
req.addAttributes(userAttributes);
}
req.setTimeLimit((int) config.getSearchTimeout());
req.setBase(new Dn(idConfig.getBaseDN()));
req.setFilter(searchFilter);
PagedResults pagedSearchControl = new PagedResultsDecorator(connection.getCodecService());
// do paged searches (OAK-2874)
pagedSearchControl.setSize(1000);
pagedSearchControl.setCookie(cookie);
req.addControl(pagedSearchControl);
return req;
}
内容来源于网络,如有侵权,请联系作者删除!