类javax.naming.CompoundName源码实例Demo

下面列出了怎么用javax.naming.CompoundName的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: scriptella-etl   文件: LdifScript.java
/**
 * @param rootDn root context DN.
 * @param dn     DN to compute a relative name. DN must starts with rootDn.
 * @return name relative to a root context DN.
 */
static Name getRelativeDN(final String rootDn, final String dn) throws NamingException {
    CompoundName root = new CompoundName(rootDn, DN_SYNTAX);
    CompoundName entry = new CompoundName(dn, DN_SYNTAX);
    if (!entry.startsWith(root)) {
        throw new NamingException("Dn " + dn + " is not from root DN " + rootDn);
    }
    return entry.getSuffix(root.size());
}
 
源代码2 项目: unitime   文件: LocalContext.java
@Override
public Name parse(String name) throws NamingException {
	return new CompoundName(name, sSyntax);
}
 
源代码3 项目: activemq-artemis   文件: InVMNameParser.java
@Override
public Name parse(final String name) throws NamingException {
   return new CompoundName(name, InVMNameParser.syntax);
}
 
源代码4 项目: activemq-artemis   文件: InVMNameParser.java
@Override
public Name parse(final String name) throws NamingException {
   return new CompoundName(name, InVMNameParser.syntax);
}
 
源代码5 项目: activemq-artemis   文件: InVMNameParser.java
@Override
public Name parse(final String name) throws NamingException {
   return new CompoundName(name, InVMNameParser.syntax);
}
 
源代码6 项目: scriptella-etl   文件: LdifScriptTest.java
private static Name newName(String name) throws InvalidNameException {
    return new CompoundName(name, LdifScript.DN_SYNTAX);
}
 
源代码7 项目: oodt   文件: ObjectNameParser.java
public Name parse(String name) throws NamingException {
	return new CompoundName(name, syntax);
}
 
源代码8 项目: tomee   文件: JNDIContext.java
@Override
public Name parse(final String name) throws NamingException {
    return new CompoundName(name, PARSER_PROPERTIES);
}
 
源代码9 项目: gemfirexd-oss   文件: NameParserImpl.java
/**
 * Parses name into CompoundName using the following CompoundName properties:
 * <p>
 * jndi.syntax.direction = "left_to_right" jndi.syntax.separator = "/"
 * jndi.syntax.ignorecase = "false" jndi.syntax.trimblanks = "yes"
 * <p>
 * Any characters '.' in the name <code>name</code> will be replaced with
 * the separator character specified above, before parsing.
 * 
 * @param name name to parse
 * @throws NamingException if naming error occurrs
 */
public Name parse(String name) throws NamingException {
  return new CompoundName(name.replace('.', '/'), syntax);
}
 
源代码10 项目: gemfirexd-oss   文件: NameParserImpl.java
/**
 * Parses name into CompoundName using the following CompoundName properties:
 * <p>
 * jndi.syntax.direction = "left_to_right" jndi.syntax.separator = "/"
 * jndi.syntax.ignorecase = "false" jndi.syntax.trimblanks = "yes"
 * <p>
 * Any characters '.' in the name <code>name</code> will be replaced with
 * the separator character specified above, before parsing.
 * 
 * @param name name to parse
 * @throws NamingException if naming error occurrs
 */
public Name parse(String name) throws NamingException {
  return new CompoundName(name.replace('.', '/'), syntax);
}
 
 类所在包
 类方法
 同包方法