/** * Parse a Dn. * * @param schemaManager The SchemaManager * @param name The Dn to be parsed * @param rdns The list that will contain the RDNs * @return The nromalized Dn * @throws LdapInvalidDnException If the Dn is invalid */ private static String parseInternal( SchemaManager schemaManager, String name, List<Rdn> rdns ) throws LdapInvalidDnException { try { return FastDnParser.parseDn( schemaManager, name, rdns ); } catch ( TooComplexDnException e ) { rdns.clear(); return new ComplexDnParser().parseDn( schemaManager, name, rdns ); } }
/** * Parse a Dn. * * @param schemaManager The SchemaManager * @param name The Dn to be parsed * @param rdns The list that will contain the RDNs * @return The nromalized Dn * @throws LdapInvalidDnException If the Dn is invalid */ private static String parseInternal( SchemaManager schemaManager, String name, List<Rdn> rdns ) throws LdapInvalidDnException { try { return FastDnParser.parseDn( schemaManager, name, rdns ); } catch ( TooComplexDnException e ) { rdns.clear(); return new ComplexDnParser().parseDn( schemaManager, name, rdns ); } }
/** * Parse a Dn. * * @param schemaManager The SchemaManager * @param name The Dn to be parsed * @param rdns The list that will contain the RDNs * @return The nromalized Dn * @throws LdapInvalidDnException If the Dn is invalid */ private static String parseInternal( SchemaManager schemaManager, String name, List<Rdn> rdns ) throws LdapInvalidDnException { try { return FastDnParser.parseDn( schemaManager, name, rdns ); } catch ( TooComplexDnException e ) { rdns.clear(); return new ComplexDnParser().parseDn( schemaManager, name, rdns ); } }
/** * Parse a NameComponent : <br> * <p> * <name-component> ::= <attributeType> <spaces> '=' * <spaces> <attributeValue> <nameComponents> * </p> * * @param schemaManager The SchemaManager * @param dn The String to parse * @param rdn The Rdn to fill. Beware that if the Rdn is not empty, the new * AttributeTypeAndValue will be added. * @throws LdapInvalidDnException If the NameComponent is invalid */ private static void parse( SchemaManager schemaManager, String dn, Rdn rdn ) throws LdapInvalidDnException { try { FastDnParser.parseRdn( schemaManager, dn, rdn ); } catch ( TooComplexDnException e ) { rdn.clear(); new ComplexDnParser().parseRdn( schemaManager, dn, rdn ); } }
/** * Parse a NameComponent : <br> * <p> * <name-component> ::= <attributeType> <spaces> '=' * <spaces> <attributeValue> <nameComponents> * </p> * * @param schemaManager The SchemaManager * @param dn The String to parse * @param rdn The Rdn to fill. Beware that if the Rdn is not empty, the new * AttributeTypeAndValue will be added. * @throws LdapInvalidDnException If the NameComponent is invalid */ private static void parse( SchemaManager schemaManager, String dn, Rdn rdn ) throws LdapInvalidDnException { try { FastDnParser.parseRdn( schemaManager, dn, rdn ); } catch ( TooComplexDnException e ) { rdn.clear(); new ComplexDnParser().parseRdn( schemaManager, dn, rdn ); } }
/** * Parse a NameComponent : <br> * <p> * <name-component> ::= <attributeType> <spaces> '=' * <spaces> <attributeValue> <nameComponents> * </p> * * @param schemaManager The SchemaManager * @param dn The String to parse * @param rdn The Rdn to fill. Beware that if the Rdn is not empty, the new * AttributeTypeAndValue will be added. * @throws LdapInvalidDnException If the NameComponent is invalid */ private static void parse( SchemaManager schemaManager, String dn, Rdn rdn ) throws LdapInvalidDnException { try { FastDnParser.parseRdn( schemaManager, dn, rdn ); } catch ( TooComplexDnException e ) { rdn.clear(); new ComplexDnParser().parseRdn( schemaManager, dn, rdn ); } }