Package org.apache.naming

Examples of org.apache.naming.NamingContextBindingsEnumeration


        return listBindings(new CompositeName(name));
    }

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

        return new NamingContextBindingsEnumeration(list(entry).iterator(), this);
    }
View Full Code Here


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

        return new NamingContextBindingsEnumeration(list(file).iterator(),
                this);

    }
View Full Code Here

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

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

        return new NamingContextBindingsEnumeration(list(file).iterator(),
                this);

    }
View Full Code Here

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

        return new NamingContextBindingsEnumeration(list(file).iterator(),
                this);

    }
View Full Code Here

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

     */
    public NamingEnumeration listBindings(Name name)
        throws NamingException {
        if (name.isEmpty()) {
            try {
                return new NamingContextBindingsEnumeration(list(base).iterator(),
                        this);
            } 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 NamingContextBindingsEnumeration(list(entry).iterator(),
                    this);
        } catch (IOException e) {
            NamingException ex = new NamingException
                (sm.getString("resources.notFound", name));
            ex.initCause(e);
View Full Code Here

                }
            }
        }

        if (bindings != null) {
            return new NamingContextBindingsEnumeration(bindings.iterator(),
                    this);
        }

        // Really not found
        throw new NameNotFoundException(
View Full Code Here

            throw new NamingException
                (sm.getString("resources.notFound", name));

        Vector entries = list(file);

        return new NamingContextBindingsEnumeration(entries, this);

    }
View Full Code Here

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

TOP

Related Classes of org.apache.naming.NamingContextBindingsEnumeration

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.