本文整理了Java中org.apache.directory.ldap.client.api.LdapConnection.close()
方法的一些代码示例,展示了LdapConnection.close()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LdapConnection.close()
方法的具体详情如下:
包路径:org.apache.directory.ldap.client.api.LdapConnection
类名称:LdapConnection
方法名:close
[英]Disconnect from the remote LDAP server.
[中]断开与远程LDAP服务器的连接。
代码示例来源:origin: org.apache.directory.api/api-all
/**
* {@inheritDoc}
*/
@Override
public void close() throws IOException
{
connection.close();
}
代码示例来源:origin: org.apache.directory.api/api-ldap-client-all
/**
* {@inheritDoc}
*/
@Override
public void close() throws IOException
{
connection.close();
}
代码示例来源:origin: org.openengsb.infrastructure/org.openengsb.infrastructure.ldap
@Override
public void stop(BundleContext context) throws Exception {
connection.close();
}
代码示例来源:origin: org.apache.directory.api/api-ldap-client-api
/**
* {@inheritDoc}
*/
@Override
public void close() throws IOException
{
connection.close();
}
代码示例来源:origin: apache/jackrabbit-oak
/**
* {@inheritDoc}
*/
public void destroyObject(LdapConnection connection) throws IOException {
log.debug("destroy connection: {}", connection);
connection.close();
}
代码示例来源:origin: org.apache.kerby/ldap-backend
/**
* Close the connection for stop()
*/
private void closeConnection() throws IOException {
if (connection.isConnected()) {
connection.close();
}
}
代码示例来源:origin: com.floragunn/search-guard
public static void unbindAndCloseSilently(final LdapConnection connection) {
if (connection == null) {
return;
}
try {
connection.unBind();
} catch (final Exception e) {
//ignore
}
try {
connection.close();
} catch (final Exception e) {
//ignore
}
}
代码示例来源:origin: org.apache.directory.client.ldap/ldap-client-api
/**
* {@inheritDoc}
*/
public void destroyObject( Object obj ) throws Exception
{
LOG.debug( "destroying {}", obj );
LdapConnection connection = ( LdapConnection ) obj;
connection.unBind();
connection.close();
}
代码示例来源:origin: apache/directory-kerby
/**
* Close the connection for stop()
*/
private void closeConnection() throws IOException {
if (connection.isConnected()) {
connection.close();
}
}
代码示例来源:origin: org.apache.directory.server/apacheds-core-integ
public static void closeConnections()
{
for ( LdapConnection con : OPEN_CONNECTIONS )
{
if ( con == null )
{
continue;
}
try
{
if ( con.isConnected() )
{
con.close();
}
}
catch ( Exception e )
{
// shouldn't happen, but print the stacktrace so that less pain during development to find the cause
e.printStackTrace();
}
}
OPEN_CONNECTIONS.clear();
}
}
代码示例来源:origin: org.openengsb.infrastructure/org.openengsb.infrastructure.ldap
/**
* Closes the dao's connection. {@link LdapDaoException} is thrown in case of IO error.
* */
public void disconnect() {
try {
connection.unBind();
connection.close();
} catch (Exception e) {
throw new LdapDaoException(e);
}
}
代码示例来源:origin: org.apache.directory.api/api-ldap-client-all
connection.close();
代码示例来源:origin: org.apache.directory.api/api-all
connection.close();
代码示例来源:origin: org.apache.directory.api/api-ldap-client-api
connection.close();
代码示例来源:origin: org.apache.directory.client.ldap/ldap-client-api
close();
代码示例来源:origin: org.apache.directory.api/api-ldap-client-api
connection.close();
代码示例来源:origin: org.apache.directory.api/api-all
connection.close();
代码示例来源:origin: org.apache.directory.api/api-ldap-client-all
connection.close();
内容来源于网络,如有侵权,请联系作者删除!