Package javax.naming.spi

Examples of javax.naming.spi.ResolveResult


        }
    }

    public NamingEnumeration<Binding> listBindings(String name)
        throws NamingException {
        ResolveResult res = getRootURLContext(name, myEnv);
        Context ctx = (Context)res.getResolvedObj();
        try {
            return ctx.listBindings(res.getRemainingName());
        } finally {
            ctx.close();
        }
    }
View Full Code Here


            }
        }
    }

    public void destroySubcontext(String name) throws NamingException {
        ResolveResult res = getRootURLContext(name, myEnv);
        Context ctx = (Context)res.getResolvedObj();
        try {
            ctx.destroySubcontext(res.getRemainingName());
        } finally {
            ctx.close();
        }
    }
View Full Code Here

            }
        }
    }

    public Context createSubcontext(String name) throws NamingException {
        ResolveResult res = getRootURLContext(name, myEnv);
        Context ctx = (Context)res.getResolvedObj();
        try {
            return ctx.createSubcontext(res.getRemainingName());
        } finally {
            ctx.close();
        }
    }
View Full Code Here

            }
        }
    }

    public Object lookupLink(String name) throws NamingException {
        ResolveResult res = getRootURLContext(name, myEnv);
        Context ctx = (Context)res.getResolvedObj();
        try {
            return ctx.lookupLink(res.getRemainingName());
        } finally {
            ctx.close();
        }
    }
View Full Code Here

            }
        }
    }

    public NameParser getNameParser(String name) throws NamingException {
        ResolveResult res = getRootURLContext(name, myEnv);
        Context ctx = (Context)res.getResolvedObj();
        try {
            return ctx.getNameParser(res.getRemainingName());
        } finally {
            ctx.close();
        }
    }
View Full Code Here

        }

        DnsUrl[] urls = new DnsUrl[] { dnsUrl };
        String domain = dnsUrl.getDomain();

        return new ResolveResult(
                DnsContextFactory.getContext(".", urls, env),
                new CompositeName().add(domain));
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public void bind(String name, Object obj, Attributes attrs)
            throws NamingException {
        ResolveResult result = getRootURLContext(name, environment);
        DirContext context = (DirContext) result.getResolvedObj();

        try {
            context.bind(result.getRemainingName(), obj, attrs);
        } finally {
            context.close();
        }
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public void rebind(String name, Object obj, Attributes attrs)
            throws NamingException {
        ResolveResult result = getRootURLContext(name, environment);
        DirContext context = (DirContext) result.getResolvedObj();

        try {
            context.rebind(result.getRemainingName(), obj, attrs);
        } finally {
            context.close();
        }
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public DirContext createSubcontext(String name, Attributes attrs)
            throws NamingException {
        ResolveResult result = getRootURLContext(name, environment);
        DirContext context = (DirContext) result.getResolvedObj();

        try {
            return context.createSubcontext(result.getRemainingName(), attrs);
        } finally {
            context.close();
        }
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public Attributes getAttributes(String name) throws NamingException {
        ResolveResult result = getRootURLContext(name, environment);
        DirContext context = (DirContext) result.getResolvedObj();

        try {
            return context.getAttributes(result.getRemainingName());
        } finally {
            context.close();
        }
    }
View Full Code Here

TOP

Related Classes of javax.naming.spi.ResolveResult

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.