Examples of ResolveResult


Examples of javax.naming.spi.ResolveResult

     *            exists, badly formated name etc)
     */
    public Context createSubcontext( final Name name )
        throws NamingException
    {
        final ResolveResult resolveResult = getBaseURLContext( name, getRawEnvironment() );
        final Context context = (Context)resolveResult.getResolvedObj();

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

Examples of javax.naming.spi.ResolveResult

    }

    public void destroySubcontext( final Name name )
        throws NamingException
    {
        final ResolveResult resolveResult = getBaseURLContext( name, getRawEnvironment() );
        final Context context = (Context)resolveResult.getResolvedObj();

        try
        {
            context.destroySubcontext( resolveResult.getRemainingName() );
        }
        finally
        {
            context.close();
        }
View Full Code Here

Examples of javax.naming.spi.ResolveResult

     * @throws javax.naming.NamingException if an error occurs
     */
    public NamingEnumeration list( final Name name )
        throws NamingException
    {
        final ResolveResult resolveResult = getBaseURLContext( name, getRawEnvironment() );
        final Context context = (Context)resolveResult.getResolvedObj();

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

Examples of javax.naming.spi.ResolveResult

     * @throws javax.naming.NamingException if an error occurs
     */
    public NamingEnumeration listBindings( final Name name )
        throws NamingException
    {
        final ResolveResult resolveResult = getBaseURLContext( name, getRawEnvironment() );
        final Context context = (Context)resolveResult.getResolvedObj();

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

Examples of javax.naming.spi.ResolveResult

     *            name is inavlid or unbound)
     */
    public Object lookup( final Name name )
        throws NamingException
    {
        final ResolveResult resolveResult = getBaseURLContext( name, getRawEnvironment() );
        final Context context = (Context)resolveResult.getResolvedObj();

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

Examples of javax.naming.spi.ResolveResult

     * @throws javax.naming.NamingException if an error occurs
     */
    public void unbind( final Name name )
        throws NamingException
    {
        final ResolveResult resolveResult = getBaseURLContext( name, getRawEnvironment() );
        final Context context = (Context)resolveResult.getResolvedObj();

        try
        {
            context.unbind( resolveResult.getRemainingName() );
        }
        finally
        {
            context.close();
        }
View Full Code Here

Examples of javax.naming.spi.ResolveResult

            throw new InvalidNameException( explanation );
        }

        final Context context = newContext( urlPart );

        return new ResolveResult( context, new CompositeName( namePart ) );
    }
View Full Code Here

Examples of javax.naming.spi.ResolveResult

        LdapContextImpl context = new LdapContextImpl(client,
                (Hashtable<Object, Object>) myEnv, dn);

        // not support ldap url + other namespace name
        return new ResolveResult(context, "");
    }
View Full Code Here

Examples of javax.naming.spi.ResolveResult

    }

    public void bind(String url, Object obj, Attributes attributes)
            throws NamingException {
        ResolveResult result = getRootURLContext(url, environment);
        DirContext context = (DirContext) result.getResolvedObj();

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

Examples of javax.naming.spi.ResolveResult

        }
    }

    public DirContext createSubcontext(String url, Attributes attributes)
            throws NamingException {
        ResolveResult result = getRootURLContext(url, environment);
        DirContext context = (DirContext) result.getResolvedObj();

        try {
            return context.createSubcontext(result.getRemainingName(),
                    attributes);
        } finally {
            context.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.