クラス EmbeddedLdapServer

java.lang.ObjectSE
org.springframework.ldap.test.unboundid.EmbeddedLdapServer
実装されているすべてのインターフェース:
AutoCloseableSE

public final class EmbeddedLdapServer extends ObjectSE implements AutoCloseableSE
組み込み Unboundid LDAP サーバーのヘルパークラス。
導入:
2.1.0
  • コンストラクターの詳細

    • EmbeddedLdapServer

      public EmbeddedLdapServer(com.unboundid.ldap.listener.InMemoryDirectoryServer directoryServer)
      提供された InMemoryDirectoryServer を使用して EmbeddedLdapServer を構築します。
      導入:
      3.3
  • メソッドの詳細

    • withPartitionSuffix

      public static EmbeddedLdapServer.Builder withPartitionSuffix(StringSE partitionSuffix)
      指定されたパーティションサフィックスを持つ新しい EmbeddedLdapServer.Builder を作成します。
      導入:
      3.3
    • newEmbeddedServer

      @DeprecatedSE(since="3.3") public static EmbeddedLdapServer newEmbeddedServer(StringSE defaultPartitionName, StringSE defaultPartitionSuffix, int port) throws ExceptionSE
      使用すべきではありません。
      代わりに、withPartitionSuffix(String) 経由で公開されるビルダーパターンを使用します。
      新しい組み込み LDAP サーバーを作成して起動します。
      例外:
      ExceptionSE
    • start

      public void start()
      組み込み LDAP サーバーを起動します。
      導入:
      3.3
    • close

      public void close()
      組み込み LDAP サーバーを閉じてリソースを解放し、既存の接続を閉じます。
      次で指定:
      インターフェース AutoCloseableSEclose 
      導入:
      3.3
    • shutdown

      @DeprecatedSE(since="3.3") public void shutdown()
      使用すべきではありません。
      代わりに close() を使用してください。