Examples of NamingContextEnumeration


Examples of org.apache.naming.NamingContextEnumeration

        return list(new CompositeName(name));
    }

    public NamingEnumeration list(Name name) throws NamingException {
        if (name.isEmpty()) {
            return new NamingContextEnumeration(list(base).iterator());
        }
        VirtualFile entry = treeLookup(name);
        if (entry == null)
            throw new NamingException(sm.getString("resources.notFound", name));

        return new NamingContextEnumeration(list(entry).iterator());
    }
View Full Code Here

Examples of org.apache.naming.NamingContextEnumeration

        if (file == null)
            throw new NamingException
                (sm.getString("resources.notFound", name));

        return new NamingContextEnumeration(list(file).iterator());

    }
View Full Code Here

Examples of org.apache.naming.NamingContextEnumeration

     * @exception NamingException if a naming exception is encountered
     */
    public NamingEnumeration list(Name name)
        throws NamingException {
        if (name.isEmpty())
            return new NamingContextEnumeration(list(entries).iterator());
        Entry entry = treeLookup(name);
        if (entry == null)
            throw new NamingException
                (sm.getString("resources.notFound", name));
        return new NamingContextEnumeration(list(entry).iterator());
    }
View Full Code Here

Examples of org.apache.naming.NamingContextEnumeration

        if (file == null)
            throw new NamingException
                (sm.getString("resources.notFound", name));

        return new NamingContextEnumeration(list(file).iterator());

    }
View Full Code Here

Examples of org.apache.naming.NamingContextEnumeration

        if (file == null)
            throw new NamingException
                (sm.getString("resources.notFound", name));

        return new NamingContextEnumeration(list(file).iterator());

    }
View Full Code Here

Examples of org.apache.naming.NamingContextEnumeration

        if (file == null)
            throw new NameNotFoundException
                (sm.getString("resources.notFound", name));

        return new NamingContextEnumeration(list(file).iterator());

    }
View Full Code Here

Examples of org.apache.naming.NamingContextEnumeration

     */
    @Override
    public NamingEnumeration<NameClassPair> list(Name name)
        throws NamingException {
        if (name.isEmpty())
            return new NamingContextEnumeration(list(entries).iterator());
        Entry entry = treeLookup(name);
        if (entry == null)
            throw new NameNotFoundException
                (sm.getString("resources.notFound", name));
        return new NamingContextEnumeration(list(entry).iterator());
    }
View Full Code Here

Examples of org.apache.naming.NamingContextEnumeration

     * @exception NamingException if a naming exception is encountered
     */
    public NamingEnumeration list(Name name)
        throws NamingException {
        if (name.isEmpty())
            return new NamingContextEnumeration(list(entries).iterator());
        Entry entry = treeLookup(name);
        if (entry == null)
            throw new NamingException
                (sm.getString("resources.notFound", name));
        return new NamingContextEnumeration(list(entry).iterator());
    }
View Full Code Here

Examples of org.apache.naming.NamingContextEnumeration

     */
    public NamingEnumeration list(Name name)
        throws NamingException {
        if (name.isEmpty()) {
            try {
                return new NamingContextEnumeration(list(base).iterator());
            } catch (IOException e) {
                NamingException ex = new NamingException
                    (sm.getString("resources.notFound", name));
                ex.initCause(e);
                throw ex;
            }
        }
        VirtualFile entry = null;
        try {
            entry = treeLookup(name);
        } catch (IOException e) {
            NamingException ex = new NamingException
                (sm.getString("resources.notFound", name));
            ex.initCause(e);
            throw ex;
        }
        if (entry == null)
            throw new NamingException
                (sm.getString("resources.notFound", name));
        try {
            return new NamingContextEnumeration(list(entry).iterator());
        } catch (IOException e) {
            NamingException ex = new NamingException
                (sm.getString("resources.notFound", name));
            ex.initCause(e);
            throw ex;
View Full Code Here

Examples of org.apache.naming.NamingContextEnumeration

                }
            }
        }

        if (bindings != null) {
            return new NamingContextEnumeration(bindings.iterator());
        }

        // Really not found
        throw new NameNotFoundException(
                sm.getString("resources.notFound", name));
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.