Examples of listBindings()


Examples of javax.naming.directory.DirContext.listBindings()

            assertTrue("WEB-INF entry is a DirContext",
                       webInfEntry instanceof DirContext);
            DirContext webInfContext = (DirContext) webInfEntry;

            // Check the bindings of the WEB-INF context directly
            checkListBindings(webInfContext.listBindings(""), webInfNames);

        } catch (NamingException e) {
            fail("NamingException: " + e);
        }
View Full Code Here

Examples of javax.naming.directory.InitialDirContext.listBindings()

                }
   
                if(log.isDebugEnabled())
                    log.debug("starting syncLdapUser");
                      
                NamingEnumeration<Binding> enm2 = ctx.listBindings(SystemConfiguration.getInstance().getStringValue(SystemConfiguration.Key.LDAP_USER_PREFIX));
                while (enm2.hasMore()) {
                    Attributes attrs = ctx.getAttributes(enm2.next().getName() + "," + SystemConfiguration.getInstance().getStringValue(SystemConfiguration.Key.LDAP_USER_PREFIX),new String[]{"uid"});
                       
                    if(attrs.get("uid") != null) {
                        String username = (String)attrs.get("uid").get(0);                  
View Full Code Here

Examples of org.jboss.fresh.registry.RegistryContext.listBindings()

        else
          out.print("Object is not instance of Context. Can't list it. : " + name);
        return;
      }

      NamingEnumeration it = ctx.listBindings(name);
      while (it.hasMore()) {
        Binding bing = (Binding) it.next();
        out.println(bing.toString());
      }
      out.close();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.