本文整理汇总了Java中org.apache.harmony.jndi.internal.parser.LdapNameParser类的典型用法代码示例。如果您正苦于以下问题:Java LdapNameParser类的具体用法?Java LdapNameParser怎么用?Java LdapNameParser使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
LdapNameParser类属于org.apache.harmony.jndi.internal.parser包,在下文中一共展示了LdapNameParser类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initial
import org.apache.harmony.jndi.internal.parser.LdapNameParser; //导入依赖的package包/类
private void initial(LdapClient ldapClient,
Hashtable<Object, Object> environment, String dn)
throws InvalidNameException {
this.client = ldapClient;
client.use();
if (environment == null) {
this.env = new Hashtable<Object, Object>();
} else {
this.env = (Hashtable<Object, Object>) environment.clone();
}
contextDn = new LdapName(dn);
parser = new LdapNameParser(dn);
if (env.get(Context.REFERRAL) == null
|| env.get(Context.REFERRAL).equals("ignore")) { //$NON-NLS-1$
requestControls = new Control[] { NON_CRITICAL_MANAGE_REF_CONTROL };
}
connCtls = (Control[]) env.get(LDAP_CONTROL_CONNECT);
}
示例2: readObject
import org.apache.harmony.jndi.internal.parser.LdapNameParser; //导入依赖的package包/类
@SuppressWarnings("unchecked")
private void readObject(ObjectInputStream ois) throws IOException,
ClassNotFoundException, InvalidNameException {
ois.defaultReadObject();
LdapNameParser parser = new LdapNameParser((String) ois.readObject());
this.rdns = parser.getList();
}
示例3: LdapName
import org.apache.harmony.jndi.internal.parser.LdapNameParser; //导入依赖的package包/类
public LdapName(String name) throws InvalidNameException {
rdnsStr = name;
LdapNameParser parser = new LdapNameParser(rdnsStr);
this.rdns = parser.getList();
}
示例4: LdapName
import org.apache.harmony.jndi.internal.parser.LdapNameParser; //导入依赖的package包/类
/**
* @ar.org.fitc.spec_ref
*/
public LdapName(String name) throws InvalidNameException {
LdapNameParser parser = new LdapNameParser(name);
this.rdns = parser.getList();
}