当前位置: 首页>>代码示例>>Java>>正文


Java Continuation类代码示例

本文整理汇总了Java中com.sun.jndi.toolkit.ctx.Continuation的典型用法代码示例。如果您正苦于以下问题:Java Continuation类的具体用法?Java Continuation怎么用?Java Continuation使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Continuation类属于com.sun.jndi.toolkit.ctx包,在下文中一共展示了Continuation类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: LdapSearchEnumeration

import com.sun.jndi.toolkit.ctx.Continuation; //导入依赖的package包/类
LdapSearchEnumeration(LdapCtx homeCtx, LdapResult search_results,
    String starter, LdapCtx.SearchArgs args, Continuation cont)
    throws NamingException {

    super(homeCtx, search_results,
          args.name, /* listArg */
          cont);

    // fully qualified name of starting context of search
    startName = new LdapName(starter);
    searchArgs = args;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:LdapSearchEnumeration.java

示例2: LdapBindingEnumeration

import com.sun.jndi.toolkit.ctx.Continuation; //导入依赖的package包/类
LdapBindingEnumeration(LdapCtx homeCtx, LdapResult answer, Name remain,
    Continuation cont) throws NamingException
{
    super(homeCtx, answer, remain, cont);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:LdapBindingEnumeration.java

示例3: LdapNamingEnumeration

import com.sun.jndi.toolkit.ctx.Continuation; //导入依赖的package包/类
LdapNamingEnumeration(LdapCtx homeCtx, LdapResult answer, Name listArg,
                             Continuation cont) throws NamingException {
    super(homeCtx, answer, listArg, cont);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:LdapNamingEnumeration.java

示例4: AbstractLdapNamingEnumeration

import com.sun.jndi.toolkit.ctx.Continuation; //导入依赖的package包/类
AbstractLdapNamingEnumeration(LdapCtx homeCtx, LdapResult answer, Name listArg,
    Continuation cont) throws NamingException {

        // These checks are to accommodate referrals and limit exceptions
        // which will generate an enumeration and defer the exception
        // to be thrown at the end of the enumeration.
        // All other exceptions are thrown immediately.
        // Exceptions shouldn't be thrown here anyhow because
        // process_return_code() is called before the constructor
        // is called, so these are just safety checks.

        if ((answer.status != LdapClient.LDAP_SUCCESS) &&
            (answer.status != LdapClient.LDAP_SIZE_LIMIT_EXCEEDED) &&
            (answer.status != LdapClient.LDAP_TIME_LIMIT_EXCEEDED) &&
            (answer.status != LdapClient.LDAP_ADMIN_LIMIT_EXCEEDED) &&
            (answer.status != LdapClient.LDAP_REFERRAL) &&
            (answer.status != LdapClient.LDAP_PARTIAL_RESULTS)) {

            // %%% need to deal with referral
            NamingException e = new NamingException(
                                LdapClient.getErrorMessage(
                                answer.status, answer.errorMessage));

            throw cont.fillInException(e);
        }

        // otherwise continue

        res = answer;
        entries = answer.entries;
        limit = (entries == null) ? 0 : entries.size(); // handle empty set
        this.listArg = listArg;
        this.cont = cont;

        if (answer.refEx != null) {
            refEx = answer.refEx;
        }

        // Ensures that context won't get closed from underneath us
        this.homeCtx = homeCtx;
        homeCtx.incEnumCount();
        enumClnt = homeCtx.clnt; // remember
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:44,代码来源:AbstractLdapNamingEnumeration.java

示例5: LdapNamingEnumeration

import com.sun.jndi.toolkit.ctx.Continuation; //导入依赖的package包/类
LdapNamingEnumeration(LdapCtx homeCtx, LdapResult answer, Name listArg,
    Continuation cont) throws NamingException {

        // These checks are to accommodate referrals and limit exceptions
        // which will generate an enumeration and defer the exception
        // to be thrown at the end of the enumeration.
        // All other exceptions are thrown immediately.
        // Exceptions shouldn't be thrown here anyhow because
        // process_return_code() is called before the constructor
        // is called, so these are just safety checks.

        if ((answer.status != LdapClient.LDAP_SUCCESS) &&
            (answer.status != LdapClient.LDAP_SIZE_LIMIT_EXCEEDED) &&
            (answer.status != LdapClient.LDAP_TIME_LIMIT_EXCEEDED) &&
            (answer.status != LdapClient.LDAP_ADMIN_LIMIT_EXCEEDED) &&
            (answer.status != LdapClient.LDAP_REFERRAL) &&
            (answer.status != LdapClient.LDAP_PARTIAL_RESULTS)) {

            // %%% need to deal with referral
            NamingException e = new NamingException(
                                LdapClient.getErrorMessage(
                                answer.status, answer.errorMessage));

            throw cont.fillInException(e);
        }

        // otherwise continue

        res = answer;
        entries = answer.entries;
        limit = (entries == null) ? 0 : entries.size(); // handle empty set
        this.listArg = listArg;
        this.cont = cont;

        if (answer.refEx != null) {
            refEx = answer.refEx;
        }

        // Ensures that context won't get closed from underneath us
        this.homeCtx = homeCtx;
        homeCtx.incEnumCount();
        enumClnt = homeCtx.clnt; // remember
}
 
开发者ID:openjdk,项目名称:jdk7-jdk,代码行数:44,代码来源:LdapNamingEnumeration.java


注:本文中的com.sun.jndi.toolkit.ctx.Continuation类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。