Package org.apache.naming

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


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

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

    }
View Full Code Here

     * @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

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

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

    }
View Full Code Here

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

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

    }
View Full Code Here

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

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

    }
View Full Code Here

     */
    @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

     * @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

     */
    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

                }
            }
        }

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

        // Really not found
        throw new NameNotFoundException(
                sm.getString("resources.notFound", name));
View Full Code Here

TOP

Related Classes of org.apache.naming.NamingContextEnumeration

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.