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


Java LdapURL.hasQueryComponents方法代码示例

本文整理汇总了Java中com.sun.jndi.ldap.LdapURL.hasQueryComponents方法的典型用法代码示例。如果您正苦于以下问题:Java LdapURL.hasQueryComponents方法的具体用法?Java LdapURL.hasQueryComponents怎么用?Java LdapURL.hasQueryComponents使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.sun.jndi.ldap.LdapURL的用法示例。


在下文中一共展示了LdapURL.hasQueryComponents方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: destroySubcontext

import com.sun.jndi.ldap.LdapURL; //导入方法依赖的package包/类
public void destroySubcontext(String name) throws NamingException {
    if (LdapURL.hasQueryComponents(name)) {
        throw new InvalidNameException(name);
    } else {
        super.destroySubcontext(name);
    }
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:8,代码来源:ldapURLContext.java

示例2: lookup

import com.sun.jndi.ldap.LdapURL; //导入方法依赖的package包/类
public Object lookup(Name name) throws NamingException {
    if (LdapURL.hasQueryComponents(name.get(0))) {
        throw new InvalidNameException(name.toString());
    } else {
        return super.lookup(name);
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:ldapURLContext.java

示例3: search

import com.sun.jndi.ldap.LdapURL; //导入方法依赖的package包/类
public NamingEnumeration<SearchResult> search(Name name,
    String filterExpr,
    Object[] filterArgs,
    SearchControls cons)
    throws NamingException {

    if (name.size() == 1) {
        return search(name.get(0), filterExpr, filterArgs, cons);
    } else if (LdapURL.hasQueryComponents(name.get(0))) {
        throw new InvalidNameException(name.toString());
    } else {
        return super.search(name, filterExpr, filterArgs, cons);
    }
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:15,代码来源:ldapURLContext.java

示例4: modifyAttributes

import com.sun.jndi.ldap.LdapURL; //导入方法依赖的package包/类
public void modifyAttributes(String name, int mod_op, Attributes attrs)
    throws NamingException {
    if (LdapURL.hasQueryComponents(name)) {
        throw new InvalidNameException(name);
    } else {
        super.modifyAttributes(name, mod_op, attrs);
    }
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:9,代码来源:ldapURLContext.java

示例5: getNameParser

import com.sun.jndi.ldap.LdapURL; //导入方法依赖的package包/类
public NameParser getNameParser(Name name) throws NamingException {
    if (LdapURL.hasQueryComponents(name.get(0))) {
        throw new InvalidNameException(name.toString());
    } else {
        return super.getNameParser(name);
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:ldapURLContext.java

示例6: unbind

import com.sun.jndi.ldap.LdapURL; //导入方法依赖的package包/类
public void unbind(String name) throws NamingException {
    if (LdapURL.hasQueryComponents(name)) {
        throw new InvalidNameException(name);
    } else {
        super.unbind(name);
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:ldapURLContext.java

示例7: rebind

import com.sun.jndi.ldap.LdapURL; //导入方法依赖的package包/类
public void rebind(Name name, Object obj, Attributes attrs)
    throws NamingException {
    if (LdapURL.hasQueryComponents(name.get(0))) {
        throw new InvalidNameException(name.toString());
    } else {
        super.rebind(name, obj, attrs);
    }
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:9,代码来源:ldapURLContext.java

示例8: getSchemaClassDefinition

import com.sun.jndi.ldap.LdapURL; //导入方法依赖的package包/类
public DirContext getSchemaClassDefinition(String name)
    throws NamingException {
    if (LdapURL.hasQueryComponents(name)) {
        throw new InvalidNameException(name);
    } else {
        return super.getSchemaClassDefinition(name);
    }
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:9,代码来源:ldapURLContext.java

示例9: getSchemaClassDefinition

import com.sun.jndi.ldap.LdapURL; //导入方法依赖的package包/类
public DirContext getSchemaClassDefinition(Name name)
    throws NamingException {
    if (LdapURL.hasQueryComponents(name.get(0))) {
        throw new InvalidNameException(name.toString());
    } else {
        return super.getSchemaClassDefinition(name);
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:ldapURLContext.java

示例10: search

import com.sun.jndi.ldap.LdapURL; //导入方法依赖的package包/类
public NamingEnumeration<SearchResult> search(Name name,
    String filter,
    SearchControls cons)
    throws NamingException {

    if (name.size() == 1) {
        return search(name.get(0), filter, cons);
    } else if (LdapURL.hasQueryComponents(name.get(0))) {
        throw new InvalidNameException(name.toString());
    } else {
        return super.search(name, filter, cons);
    }
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:14,代码来源:ldapURLContext.java

示例11: list

import com.sun.jndi.ldap.LdapURL; //导入方法依赖的package包/类
public NamingEnumeration<NameClassPair> list(String name)
        throws NamingException {
    if (LdapURL.hasQueryComponents(name)) {
        throw new InvalidNameException(name);
    } else {
        return super.list(name);
    }
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:9,代码来源:ldapURLContext.java

示例12: createSubcontext

import com.sun.jndi.ldap.LdapURL; //导入方法依赖的package包/类
public DirContext createSubcontext(String name, Attributes attrs)
    throws NamingException {
    if (LdapURL.hasQueryComponents(name)) {
        throw new InvalidNameException(name);
    } else {
        return super.createSubcontext(name, attrs);
    }
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:9,代码来源:ldapURLContext.java

示例13: unbind

import com.sun.jndi.ldap.LdapURL; //导入方法依赖的package包/类
public void unbind(Name name) throws NamingException {
    if (LdapURL.hasQueryComponents(name.get(0))) {
        throw new InvalidNameException(name.toString());
    } else {
        super.unbind(name);
    }
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:8,代码来源:ldapURLContext.java


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