Package org.ldaptive

Class AbstractConfig

All Implemented Interfaces:
Freezable
Direct Known Subclasses:
ConnectionConfig, SaslConfig, SslConfig, ThreadPoolConfig

public abstract class AbstractConfig extends AbstractFreezable
Provides common implementations for configuration objects.
  • Field Details

    • logger

      protected final Logger logger
      Logger for this class.
  • Constructor Details

    • AbstractConfig

      public AbstractConfig()
  • Method Details

    • checkArrayContainsNull

      protected void checkArrayContainsNull(Object[] array)
      Verifies that an array does not contain a null element.
      Parameters:
      array - to verify
      Throws:
      IllegalArgumentException - if the array contains null
    • checkStringInput

      protected void checkStringInput(String s, boolean allowNull)
      Verifies that a string is not null or empty.
      Parameters:
      s - to verify
      allowNull - whether null strings are valid
      Throws:
      IllegalArgumentException - if the string is null or empty