Java 类javax.naming.spi.DirectoryManager 实例源码

项目:OpenJSharp    文件:PartialCompositeDirContext.java   
public Attributes getAttributes(Name name, String[] attrIds)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Attributes answer;
    Name nm = name;

    try {
        answer = ctx.p_getAttributes(nm, attrIds, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            answer = ctx.p_getAttributes(nm, attrIds, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        answer = cctx.getAttributes(e.getRemainingName(), attrIds);
    }
    return answer;
}
项目:OpenJSharp    文件:PartialCompositeDirContext.java   
public void modifyAttributes(Name name, int mod_op, Attributes attrs)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Name nm = name;

    try {
        ctx.p_modifyAttributes(nm, mod_op, attrs, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            ctx.p_modifyAttributes(nm, mod_op, attrs, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        cctx.modifyAttributes(e.getRemainingName(), mod_op, attrs);
    }
}
项目:OpenJSharp    文件:PartialCompositeDirContext.java   
public void modifyAttributes(Name name, ModificationItem[] mods)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Name nm = name;

    try {
        ctx.p_modifyAttributes(nm, mods, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            ctx.p_modifyAttributes(nm, mods, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        cctx.modifyAttributes(e.getRemainingName(), mods);
    }
}
项目:OpenJSharp    文件:PartialCompositeDirContext.java   
public void bind(Name name, Object obj, Attributes attrs)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Name nm = name;

    try {
        ctx.p_bind(nm, obj, attrs, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            ctx.p_bind(nm, obj, attrs, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        cctx.bind(e.getRemainingName(), obj, attrs);
    }
}
项目:OpenJSharp    文件:PartialCompositeDirContext.java   
public void rebind(Name name, Object obj, Attributes attrs)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Name nm = name;

    try {
        ctx.p_rebind(nm, obj, attrs, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            ctx.p_rebind(nm, obj, attrs, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        cctx.rebind(e.getRemainingName(), obj, attrs);
    }
}
项目:OpenJSharp    文件:PartialCompositeDirContext.java   
public DirContext createSubcontext(Name name, Attributes attrs)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    DirContext answer;
    Name nm = name;

    try {
        answer = ctx.p_createSubcontext(nm, attrs, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            answer = ctx.p_createSubcontext(nm, attrs, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        answer = cctx.createSubcontext(e.getRemainingName(), attrs);
    }
    return answer;
}
项目:OpenJSharp    文件:PartialCompositeDirContext.java   
public NamingEnumeration<SearchResult>
    search(Name name,
           String filter,
           SearchControls cons)
    throws NamingException
{

    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    NamingEnumeration<SearchResult> answer;
    Name nm = name;

    try {
        answer = ctx.p_search(nm, filter, cons, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            answer = ctx.p_search(nm, filter, cons, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        answer = cctx.search(e.getRemainingName(), filter, cons);
    }
    return answer;
}
项目:OpenJSharp    文件:PartialCompositeDirContext.java   
public DirContext getSchema(Name name) throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    DirContext answer;
    Name nm = name;

    try {
        answer = ctx.p_getSchema(nm, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            answer = ctx.p_getSchema(nm, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        answer = cctx.getSchema(e.getRemainingName());
    }
    return answer;
}
项目:OpenJSharp    文件:PartialCompositeDirContext.java   
public DirContext getSchemaClassDefinition(Name name)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    DirContext answer;
    Name nm = name;

    try {
        answer = ctx.p_getSchemaClassDefinition(nm, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            answer = ctx.p_getSchemaClassDefinition(nm, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        answer = cctx.getSchemaClassDefinition(e.getRemainingName());
    }
    return answer;
}
项目:jdk8u-jdk    文件:PartialCompositeDirContext.java   
public Attributes getAttributes(Name name, String[] attrIds)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Attributes answer;
    Name nm = name;

    try {
        answer = ctx.p_getAttributes(nm, attrIds, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            answer = ctx.p_getAttributes(nm, attrIds, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        answer = cctx.getAttributes(e.getRemainingName(), attrIds);
    }
    return answer;
}
项目:jdk8u-jdk    文件:PartialCompositeDirContext.java   
public void modifyAttributes(Name name, int mod_op, Attributes attrs)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Name nm = name;

    try {
        ctx.p_modifyAttributes(nm, mod_op, attrs, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            ctx.p_modifyAttributes(nm, mod_op, attrs, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        cctx.modifyAttributes(e.getRemainingName(), mod_op, attrs);
    }
}
项目:jdk8u-jdk    文件:PartialCompositeDirContext.java   
public void modifyAttributes(Name name, ModificationItem[] mods)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Name nm = name;

    try {
        ctx.p_modifyAttributes(nm, mods, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            ctx.p_modifyAttributes(nm, mods, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        cctx.modifyAttributes(e.getRemainingName(), mods);
    }
}
项目:jdk8u-jdk    文件:PartialCompositeDirContext.java   
public void bind(Name name, Object obj, Attributes attrs)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Name nm = name;

    try {
        ctx.p_bind(nm, obj, attrs, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            ctx.p_bind(nm, obj, attrs, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        cctx.bind(e.getRemainingName(), obj, attrs);
    }
}
项目:jdk8u-jdk    文件:PartialCompositeDirContext.java   
public void rebind(Name name, Object obj, Attributes attrs)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Name nm = name;

    try {
        ctx.p_rebind(nm, obj, attrs, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            ctx.p_rebind(nm, obj, attrs, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        cctx.rebind(e.getRemainingName(), obj, attrs);
    }
}
项目:jdk8u-jdk    文件:PartialCompositeDirContext.java   
public DirContext createSubcontext(Name name, Attributes attrs)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    DirContext answer;
    Name nm = name;

    try {
        answer = ctx.p_createSubcontext(nm, attrs, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            answer = ctx.p_createSubcontext(nm, attrs, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        answer = cctx.createSubcontext(e.getRemainingName(), attrs);
    }
    return answer;
}
项目:jdk8u-jdk    文件:PartialCompositeDirContext.java   
public NamingEnumeration<SearchResult>
    search(Name name,
           String filter,
           SearchControls cons)
    throws NamingException
{

    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    NamingEnumeration<SearchResult> answer;
    Name nm = name;

    try {
        answer = ctx.p_search(nm, filter, cons, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            answer = ctx.p_search(nm, filter, cons, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        answer = cctx.search(e.getRemainingName(), filter, cons);
    }
    return answer;
}
项目:jdk8u-jdk    文件:PartialCompositeDirContext.java   
public DirContext getSchema(Name name) throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    DirContext answer;
    Name nm = name;

    try {
        answer = ctx.p_getSchema(nm, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            answer = ctx.p_getSchema(nm, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        answer = cctx.getSchema(e.getRemainingName());
    }
    return answer;
}
项目:jdk8u-jdk    文件:PartialCompositeDirContext.java   
public DirContext getSchemaClassDefinition(Name name)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    DirContext answer;
    Name nm = name;

    try {
        answer = ctx.p_getSchemaClassDefinition(nm, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            answer = ctx.p_getSchemaClassDefinition(nm, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        answer = cctx.getSchemaClassDefinition(e.getRemainingName());
    }
    return answer;
}
项目:openjdk-jdk10    文件:PartialCompositeDirContext.java   
public Attributes getAttributes(Name name, String[] attrIds)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Attributes answer;
    Name nm = name;

    try {
        answer = ctx.p_getAttributes(nm, attrIds, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            answer = ctx.p_getAttributes(nm, attrIds, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        answer = cctx.getAttributes(e.getRemainingName(), attrIds);
    }
    return answer;
}
项目:openjdk-jdk10    文件:PartialCompositeDirContext.java   
public void modifyAttributes(Name name, int mod_op, Attributes attrs)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Name nm = name;

    try {
        ctx.p_modifyAttributes(nm, mod_op, attrs, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            ctx.p_modifyAttributes(nm, mod_op, attrs, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        cctx.modifyAttributes(e.getRemainingName(), mod_op, attrs);
    }
}
项目:openjdk-jdk10    文件:PartialCompositeDirContext.java   
public void modifyAttributes(Name name, ModificationItem[] mods)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Name nm = name;

    try {
        ctx.p_modifyAttributes(nm, mods, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            ctx.p_modifyAttributes(nm, mods, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        cctx.modifyAttributes(e.getRemainingName(), mods);
    }
}
项目:openjdk-jdk10    文件:PartialCompositeDirContext.java   
public void bind(Name name, Object obj, Attributes attrs)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Name nm = name;

    try {
        ctx.p_bind(nm, obj, attrs, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            ctx.p_bind(nm, obj, attrs, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        cctx.bind(e.getRemainingName(), obj, attrs);
    }
}
项目:openjdk-jdk10    文件:PartialCompositeDirContext.java   
public void rebind(Name name, Object obj, Attributes attrs)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Name nm = name;

    try {
        ctx.p_rebind(nm, obj, attrs, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            ctx.p_rebind(nm, obj, attrs, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        cctx.rebind(e.getRemainingName(), obj, attrs);
    }
}
项目:openjdk-jdk10    文件:PartialCompositeDirContext.java   
public DirContext createSubcontext(Name name, Attributes attrs)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    DirContext answer;
    Name nm = name;

    try {
        answer = ctx.p_createSubcontext(nm, attrs, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            answer = ctx.p_createSubcontext(nm, attrs, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        answer = cctx.createSubcontext(e.getRemainingName(), attrs);
    }
    return answer;
}
项目:openjdk-jdk10    文件:PartialCompositeDirContext.java   
public NamingEnumeration<SearchResult>
    search(Name name,
           String filter,
           SearchControls cons)
    throws NamingException
{

    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    NamingEnumeration<SearchResult> answer;
    Name nm = name;

    try {
        answer = ctx.p_search(nm, filter, cons, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            answer = ctx.p_search(nm, filter, cons, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        answer = cctx.search(e.getRemainingName(), filter, cons);
    }
    return answer;
}
项目:openjdk-jdk10    文件:PartialCompositeDirContext.java   
public DirContext getSchema(Name name) throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    DirContext answer;
    Name nm = name;

    try {
        answer = ctx.p_getSchema(nm, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            answer = ctx.p_getSchema(nm, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        answer = cctx.getSchema(e.getRemainingName());
    }
    return answer;
}
项目:openjdk-jdk10    文件:PartialCompositeDirContext.java   
public DirContext getSchemaClassDefinition(Name name)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    DirContext answer;
    Name nm = name;

    try {
        answer = ctx.p_getSchemaClassDefinition(nm, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            answer = ctx.p_getSchemaClassDefinition(nm, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        answer = cctx.getSchemaClassDefinition(e.getRemainingName());
    }
    return answer;
}
项目:openjdk9    文件:PartialCompositeDirContext.java   
public Attributes getAttributes(Name name, String[] attrIds)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Attributes answer;
    Name nm = name;

    try {
        answer = ctx.p_getAttributes(nm, attrIds, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            answer = ctx.p_getAttributes(nm, attrIds, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        answer = cctx.getAttributes(e.getRemainingName(), attrIds);
    }
    return answer;
}
项目:openjdk9    文件:PartialCompositeDirContext.java   
public void modifyAttributes(Name name, int mod_op, Attributes attrs)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Name nm = name;

    try {
        ctx.p_modifyAttributes(nm, mod_op, attrs, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            ctx.p_modifyAttributes(nm, mod_op, attrs, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        cctx.modifyAttributes(e.getRemainingName(), mod_op, attrs);
    }
}
项目:openjdk9    文件:PartialCompositeDirContext.java   
public void modifyAttributes(Name name, ModificationItem[] mods)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Name nm = name;

    try {
        ctx.p_modifyAttributes(nm, mods, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            ctx.p_modifyAttributes(nm, mods, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        cctx.modifyAttributes(e.getRemainingName(), mods);
    }
}
项目:openjdk9    文件:PartialCompositeDirContext.java   
public void bind(Name name, Object obj, Attributes attrs)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Name nm = name;

    try {
        ctx.p_bind(nm, obj, attrs, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            ctx.p_bind(nm, obj, attrs, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        cctx.bind(e.getRemainingName(), obj, attrs);
    }
}
项目:openjdk9    文件:PartialCompositeDirContext.java   
public void rebind(Name name, Object obj, Attributes attrs)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Name nm = name;

    try {
        ctx.p_rebind(nm, obj, attrs, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            ctx.p_rebind(nm, obj, attrs, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        cctx.rebind(e.getRemainingName(), obj, attrs);
    }
}
项目:openjdk9    文件:PartialCompositeDirContext.java   
public DirContext createSubcontext(Name name, Attributes attrs)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    DirContext answer;
    Name nm = name;

    try {
        answer = ctx.p_createSubcontext(nm, attrs, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            answer = ctx.p_createSubcontext(nm, attrs, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        answer = cctx.createSubcontext(e.getRemainingName(), attrs);
    }
    return answer;
}
项目:openjdk9    文件:PartialCompositeDirContext.java   
public NamingEnumeration<SearchResult>
    search(Name name,
           String filter,
           SearchControls cons)
    throws NamingException
{

    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    NamingEnumeration<SearchResult> answer;
    Name nm = name;

    try {
        answer = ctx.p_search(nm, filter, cons, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            answer = ctx.p_search(nm, filter, cons, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        answer = cctx.search(e.getRemainingName(), filter, cons);
    }
    return answer;
}
项目:openjdk9    文件:PartialCompositeDirContext.java   
public DirContext getSchema(Name name) throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    DirContext answer;
    Name nm = name;

    try {
        answer = ctx.p_getSchema(nm, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            answer = ctx.p_getSchema(nm, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        answer = cctx.getSchema(e.getRemainingName());
    }
    return answer;
}
项目:openjdk9    文件:PartialCompositeDirContext.java   
public DirContext getSchemaClassDefinition(Name name)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    DirContext answer;
    Name nm = name;

    try {
        answer = ctx.p_getSchemaClassDefinition(nm, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            answer = ctx.p_getSchemaClassDefinition(nm, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        answer = cctx.getSchemaClassDefinition(e.getRemainingName());
    }
    return answer;
}
项目:jdk8u_jdk    文件:PartialCompositeDirContext.java   
public Attributes getAttributes(Name name, String[] attrIds)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Attributes answer;
    Name nm = name;

    try {
        answer = ctx.p_getAttributes(nm, attrIds, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            answer = ctx.p_getAttributes(nm, attrIds, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        answer = cctx.getAttributes(e.getRemainingName(), attrIds);
    }
    return answer;
}
项目:jdk8u_jdk    文件:PartialCompositeDirContext.java   
public void modifyAttributes(Name name, int mod_op, Attributes attrs)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Name nm = name;

    try {
        ctx.p_modifyAttributes(nm, mod_op, attrs, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            ctx.p_modifyAttributes(nm, mod_op, attrs, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        cctx.modifyAttributes(e.getRemainingName(), mod_op, attrs);
    }
}
项目:jdk8u_jdk    文件:PartialCompositeDirContext.java   
public void modifyAttributes(Name name, ModificationItem[] mods)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Name nm = name;

    try {
        ctx.p_modifyAttributes(nm, mods, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            ctx.p_modifyAttributes(nm, mods, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        cctx.modifyAttributes(e.getRemainingName(), mods);
    }
}
项目:jdk8u_jdk    文件:PartialCompositeDirContext.java   
public void bind(Name name, Object obj, Attributes attrs)
        throws NamingException {
    PartialCompositeDirContext ctx = this;
    Hashtable<?,?> env = p_getEnvironment();
    Continuation cont = new Continuation(name, env);
    Name nm = name;

    try {
        ctx.p_bind(nm, obj, attrs, cont);
        while (cont.isContinue()) {
            nm = cont.getRemainingName();
            ctx = getPCDirContext(cont);
            ctx.p_bind(nm, obj, attrs, cont);
        }
    } catch (CannotProceedException e) {
        DirContext cctx = DirectoryManager.getContinuationDirContext(e);
        cctx.bind(e.getRemainingName(), obj, attrs);
    }
}