javax.naming.CompoundName Java Examples
The following examples show how to use
javax.naming.CompoundName.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LdifScript.java From scriptella-etl with Apache License 2.0 | 5 votes |
/** * @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()); }
Example #2
Source File: LocalContext.java From unitime with Apache License 2.0 | 4 votes |
@Override public Name parse(String name) throws NamingException { return new CompoundName(name, sSyntax); }
Example #3
Source File: InVMNameParser.java From activemq-artemis with Apache License 2.0 | 4 votes |
@Override public Name parse(final String name) throws NamingException { return new CompoundName(name, InVMNameParser.syntax); }
Example #4
Source File: InVMNameParser.java From activemq-artemis with Apache License 2.0 | 4 votes |
@Override public Name parse(final String name) throws NamingException { return new CompoundName(name, InVMNameParser.syntax); }
Example #5
Source File: InVMNameParser.java From activemq-artemis with Apache License 2.0 | 4 votes |
@Override public Name parse(final String name) throws NamingException { return new CompoundName(name, InVMNameParser.syntax); }
Example #6
Source File: LdifScriptTest.java From scriptella-etl with Apache License 2.0 | 4 votes |
private static Name newName(String name) throws InvalidNameException { return new CompoundName(name, LdifScript.DN_SYNTAX); }
Example #7
Source File: ObjectNameParser.java From oodt with Apache License 2.0 | 4 votes |
public Name parse(String name) throws NamingException { return new CompoundName(name, syntax); }
Example #8
Source File: JNDIContext.java From tomee with Apache License 2.0 | 4 votes |
@Override public Name parse(final String name) throws NamingException { return new CompoundName(name, PARSER_PROPERTIES); }
Example #9
Source File: NameParserImpl.java From gemfirexd-oss with Apache License 2.0 | 2 votes |
/** * 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); }
Example #10
Source File: NameParserImpl.java From gemfirexd-oss with Apache License 2.0 | 2 votes |
/** * 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); }