Package javax.naming

Examples of javax.naming.Context.destroySubcontext()


            destroySubcontext(name.get(0));
        } else {
            Context context = getContinuationContext(name);

            try {
                context.destroySubcontext(name.getSuffix(1));
            } finally {
                context.close();
            }
        }
    }
View Full Code Here


    public void destroySubcontext(String name) throws NamingException {
        ResolveResult result = getRootURLContext(name, environment);
        Context context = (Context) result.getResolvedObj();

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

            destroySubcontext(name.get(0));
        } else {
            Context context = getContinuationContext(name);

            try {
                context.destroySubcontext(name.getSuffix(1));
            } finally {
                context.close();
            }
        }
    }
View Full Code Here

    public void destroySubcontext(String name) throws NamingException {
        ResolveResult result = getRootURLContext(name, environment);
        Context context = (Context) result.getResolvedObj();

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

        }
        final Context namespaceContext = selector.getContext(parsedName.namespace());
        if (namespaceContext == null) {
            throw new NameNotFoundException(name.toString());
        }
        namespaceContext.destroySubcontext(parsedName.remaining());
    }

    public Context createSubcontext(Name name) throws NamingException {
        final ParsedName parsedName = parse(name);
        if (parsedName.namespace() == null || parsedName.namespace().equals("")) {
View Full Code Here

     * @param context The stop context
     */
    public synchronized void stop(StopContext context) {
        final Context parentContext = parentContextValue.getValue();
        try {
            parentContext.destroySubcontext(name.getLocalName());
        } catch (NamingException e) {
            throw new IllegalStateException("Failed to destroy sub-context with name '" + name + "' from context '" + parentContext + "'", e);
        }
    }

View Full Code Here

            destroySubcontext(name.get(0));
        } else {
            Context context = getContinuationContext(name);

            try {
                context.destroySubcontext(name.getSuffix(1));
            } finally {
                context.close();
            }
        }
    }
View Full Code Here

    public void destroySubcontext(String name) throws NamingException {
        ResolveResult result = getRootURLContext(name, environment);
        Context context = (Context) result.getResolvedObj();

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

             * multi ns, find next ns context, delegate operation to the next
             * context
             */
            Context nns = findNnsContext(name);
            Name remainingName = name.getSuffix(1);
            nns.destroySubcontext(remainingName);
            return;
        }

        /*
         * there is only one ldap ns
View Full Code Here

             * multi ns, find next ns context, delegate operation to the next
             * context
             */
            Context nns = findNnsContext(name);
            Name remainingName = name.getSuffix(1);
            nns.destroySubcontext(remainingName);
            return;
        }

        /*
         * there is only one ldap ns
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.