Class ResponseParser


  • public class ResponseParser
    extends Object
    Parses a buffer looking for an LDAP response message.
    • Field Detail

      • BIND_PATH

        private static final DERPath BIND_PATH
        Bind response DER path.
      • ENTRY_PATH

        private static final DERPath ENTRY_PATH
        Search entry DER path.
      • SEARCH_PATH

        private static final DERPath SEARCH_PATH
        Search response DER path.
      • MODIFY_PATH

        private static final DERPath MODIFY_PATH
        Modify response DER path.
      • ADD_PATH

        private static final DERPath ADD_PATH
        Add response DER path.
      • DELETE_PATH

        private static final DERPath DELETE_PATH
        Delete response DER path.
      • MODIFY_DN_PATH

        private static final DERPath MODIFY_DN_PATH
        Modify DN response DER path.
      • COMPARE_PATH

        private static final DERPath COMPARE_PATH
        Compare response DER path.
      • SEARCH_REFERENCE_PATH

        private static final DERPath SEARCH_REFERENCE_PATH
        Search reference result DER path.
      • EXTENDED_PATH

        private static final DERPath EXTENDED_PATH
        Extended response DER path.
      • INTERMEDIATE_PATH

        private static final DERPath INTERMEDIATE_PATH
        Intermediate response DER path.
      • parser

        private final DERParser parser
        Parser for decoding LDAP messages.
      • message

        private Message message
        Message produced from parsing a DER buffer.
    • Constructor Detail

      • ResponseParser

        public ResponseParser()
        Creates a new response parser.
    • Method Detail

      • parse

        public Optional<Message> parse​(DERBuffer buffer)
        Examines the supplied buffer and parses an LDAP response message if one is found.
        Parameters:
        buffer - to parse
        Returns:
        optional LDAP message