Package javax.naming

Examples of javax.naming.LinkLoopException


         */
        public void addUrl( LdapURL url ) throws LinkLoopException
        {
            if ( processedUrls.contains( url ) )
            {
                throw new LinkLoopException( NLS.bind( Messages.error__loop_detected, url ) );
            }

            urls.add( url );
        }
View Full Code Here


        {
            referralsToProcess.add( urlAndDn );
        }
        else
        {
            throw new LinkLoopException( "Loop detected while following referral: " + url );
        }
    }
View Full Code Here

import junit.framework.TestCase;

public class LinkLoopExceptionTest extends TestCase {

  public void testSetLinkResolvedName() throws InvalidNameException {
    LinkLoopException ex = new LinkLoopException("Test");
    Properties env = new Properties();
    env.put("jndi.syntax.direction", "flat");
    Name name = new CompoundName("Test", env);
    ex.setLinkResolvedName(name);
    ex.setLinkResolvedName(null);
    assertNull(ex.getLinkResolvedName());
  }
View Full Code Here

    ex.setLinkResolvedName(null);
    assertNull(ex.getLinkResolvedName());
  }

  public void testSetLinkRemainingName() throws InvalidNameException {
    LinkLoopException ex = new LinkLoopException("Test");
    Properties env = new Properties();
    env.put("jndi.syntax.direction", "flat");
    Name name = new CompoundName("Test", env);
    ex.setLinkRemainingName(name);
    ex.setLinkRemainingName(null);
    assertNull(ex.getLinkRemainingName());
  }
View Full Code Here

TOP

Related Classes of javax.naming.LinkLoopException

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.