Class SeparatorPolicy

java.lang.Object
org.springframework.ldap.ldif.support.SeparatorPolicy

public class SeparatorPolicy extends Object
Policy object for enforcing LDIF record separation rules. Designed explicitly for use in LdifParser. This default separator policy should really not be required to be replaced but it is modular just in case.

This class applies the separation policy prescribed in RFC2849 for LDIF files and identifies the line type from the input.

  • Constructor Details

    • SeparatorPolicy

      public SeparatorPolicy()
  • Method Details

    • assess

      public LineIdentifier assess(String line)
      Assess a read line.

      In LDIF, lines must adhere to a particular format. A line can only contain one attribute and its value. The value may span multiple lines. Continuation lines are marked by the presence of a single space in the 1st position. Non-continuation lines must start in the first position.