Package org.apache.directory.api.ldap.model.name

Examples of org.apache.directory.api.ldap.model.name.AntlrDnParser


     *
     * @throws LdapInvalidDnException the invalid name exception
     */
    /* No protection*/void parseDn( String name, List<Rdn> rdns ) throws LdapInvalidDnException
    {
        AntlrDnParser dnParser = new AntlrDnParser( new AntlrDnLexer( new StringReader( name ) ) );

        try
        {
            dnParser.relativeDistinguishedNames( rdns );
        }
        catch ( Exception e )
        {
            throw new LdapInvalidDnException( ResultCodeEnum.INVALID_DN_SYNTAX, e.getMessage(), e );
        }
View Full Code Here


     *
     * @throws LdapInvalidDnException the invalid name exception
     */
    /* No protection*/void parseRdn( String name, Rdn rdn ) throws LdapInvalidDnException
    {
        AntlrDnParser dnParser = new AntlrDnParser( new AntlrDnLexer( new StringReader( name ) ) );

        try
        {
            dnParser.relativeDistinguishedName( rdn );
        }
        catch ( Exception e )
        {
            throw new LdapInvalidDnException( ResultCodeEnum.INVALID_DN_SYNTAX, e.getMessage(), e );
        }
View Full Code Here

TOP

Related Classes of org.apache.directory.api.ldap.model.name.AntlrDnParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.