本文整理汇总了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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}