Java Code Examples for javax.naming.Name#getAll()
The following examples show how to use
javax.naming.Name#getAll() .
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: LdapName.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
/** * Adds the components of a name -- in order -- at a specified position * within this name. Components of this LDAP name at or after the * index (if any) of the first new component are shifted up * (away from index 0) to accommodate the new components. * * @param suffix The non-null components to add. * @param posn The index at which to add the new component. * Must be in the range [0,size()]. * * @return The updated name (not a new instance). * * @throws InvalidNameException if <tt>suffix</tt> is not a valid LDAP * name, or if the addition of the components would violate the * syntax rules of this LDAP name. * @throws IndexOutOfBoundsException * If posn is outside the specified range. */ public Name addAll(int posn, Name suffix) throws InvalidNameException { unparsed = null; // no longer valid if (suffix instanceof LdapName) { LdapName s = (LdapName) suffix; rdns.addAll(posn, s.rdns); } else { Enumeration<String> comps = suffix.getAll(); while (comps.hasMoreElements()) { rdns.add(posn++, (new Rfc2253Parser(comps.nextElement()). parseRdn())); } } return this; }
Example 2
Source File: LdapName.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
/** * Adds the components of a name -- in order -- at a specified position * within this name. Components of this LDAP name at or after the * index (if any) of the first new component are shifted up * (away from index 0) to accommodate the new components. * * @param suffix The non-null components to add. * @param posn The index at which to add the new component. * Must be in the range [0,size()]. * * @return The updated name (not a new instance). * * @throws InvalidNameException if <tt>suffix</tt> is not a valid LDAP * name, or if the addition of the components would violate the * syntax rules of this LDAP name. * @throws IndexOutOfBoundsException * If posn is outside the specified range. */ public Name addAll(int posn, Name suffix) throws InvalidNameException { unparsed = null; // no longer valid if (suffix instanceof LdapName) { LdapName s = (LdapName) suffix; rdns.addAll(posn, s.rdns); } else { Enumeration<String> comps = suffix.getAll(); while (comps.hasMoreElements()) { rdns.add(posn++, (new Rfc2253Parser(comps.nextElement()). parseRdn())); } } return this; }
Example 3
Source File: LdapName.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
/** * Adds the components of a name -- in order -- at a specified position * within this name. Components of this LDAP name at or after the * index (if any) of the first new component are shifted up * (away from index 0) to accommodate the new components. * * @param suffix The non-null components to add. * @param posn The index at which to add the new component. * Must be in the range [0,size()]. * * @return The updated name (not a new instance). * * @throws InvalidNameException if <tt>suffix</tt> is not a valid LDAP * name, or if the addition of the components would violate the * syntax rules of this LDAP name. * @throws IndexOutOfBoundsException * If posn is outside the specified range. */ public Name addAll(int posn, Name suffix) throws InvalidNameException { unparsed = null; // no longer valid if (suffix instanceof LdapName) { LdapName s = (LdapName) suffix; rdns.addAll(posn, s.rdns); } else { Enumeration<String> comps = suffix.getAll(); while (comps.hasMoreElements()) { rdns.add(posn++, (new Rfc2253Parser(comps.nextElement()). parseRdn())); } } return this; }
Example 4
Source File: LdapName.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
/** * Adds the components of a name -- in order -- at a specified position * within this name. Components of this LDAP name at or after the * index (if any) of the first new component are shifted up * (away from index 0) to accommodate the new components. * * @param suffix The non-null components to add. * @param posn The index at which to add the new component. * Must be in the range [0,size()]. * * @return The updated name (not a new instance). * * @throws InvalidNameException if <tt>suffix</tt> is not a valid LDAP * name, or if the addition of the components would violate the * syntax rules of this LDAP name. * @throws IndexOutOfBoundsException * If posn is outside the specified range. */ public Name addAll(int posn, Name suffix) throws InvalidNameException { unparsed = null; // no longer valid if (suffix instanceof LdapName) { LdapName s = (LdapName) suffix; rdns.addAll(posn, s.rdns); } else { Enumeration<String> comps = suffix.getAll(); while (comps.hasMoreElements()) { rdns.add(posn++, (new Rfc2253Parser(comps.nextElement()). parseRdn())); } } return this; }
Example 5
Source File: LdapName.java From JDKSourceCode1.8 with MIT License | 4 votes |
/** * Adds the components of a name -- in order -- at a specified position * within this name. Components of this LDAP name at or after the * index (if any) of the first new component are shifted up * (away from index 0) to accommodate the new components. * * @param suffix The non-null components to add. * @param posn The index at which to add the new component. * Must be in the range [0,size()]. * * @return The updated name (not a new instance). * * @throws InvalidNameException if <tt>suffix</tt> is not a valid LDAP * name, or if the addition of the components would violate the * syntax rules of this LDAP name. * @throws IndexOutOfBoundsException * If posn is outside the specified range. */ public Name addAll(int posn, Name suffix) throws InvalidNameException { unparsed = null; // no longer valid if (suffix instanceof LdapName) { LdapName s = (LdapName) suffix; rdns.addAll(posn, s.rdns); } else { Enumeration<String> comps = suffix.getAll(); while (comps.hasMoreElements()) { rdns.add(posn++, (new Rfc2253Parser(comps.nextElement()). parseRdn())); } } return this; }
Example 6
Source File: LdapName.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
/** * Adds the components of a name -- in order -- at a specified position * within this name. Components of this LDAP name at or after the * index (if any) of the first new component are shifted up * (away from index 0) to accommodate the new components. * * @param suffix The non-null components to add. * @param posn The index at which to add the new component. * Must be in the range [0,size()]. * * @return The updated name (not a new instance). * * @throws InvalidNameException if <tt>suffix</tt> is not a valid LDAP * name, or if the addition of the components would violate the * syntax rules of this LDAP name. * @throws IndexOutOfBoundsException * If posn is outside the specified range. */ public Name addAll(int posn, Name suffix) throws InvalidNameException { unparsed = null; // no longer valid if (suffix instanceof LdapName) { LdapName s = (LdapName) suffix; rdns.addAll(posn, s.rdns); } else { Enumeration<String> comps = suffix.getAll(); while (comps.hasMoreElements()) { rdns.add(posn++, (new Rfc2253Parser(comps.nextElement()). parseRdn())); } } return this; }
Example 7
Source File: LdapName.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
/** * Adds the components of a name -- in order -- at a specified position * within this name. Components of this LDAP name at or after the * index (if any) of the first new component are shifted up * (away from index 0) to accommodate the new components. * * @param suffix The non-null components to add. * @param posn The index at which to add the new component. * Must be in the range [0,size()]. * * @return The updated name (not a new instance). * * @throws InvalidNameException if <tt>suffix</tt> is not a valid LDAP * name, or if the addition of the components would violate the * syntax rules of this LDAP name. * @throws IndexOutOfBoundsException * If posn is outside the specified range. */ public Name addAll(int posn, Name suffix) throws InvalidNameException { unparsed = null; // no longer valid if (suffix instanceof LdapName) { LdapName s = (LdapName) suffix; rdns.addAll(posn, s.rdns); } else { Enumeration<String> comps = suffix.getAll(); while (comps.hasMoreElements()) { rdns.add(posn++, (new Rfc2253Parser(comps.nextElement()). parseRdn())); } } return this; }
Example 8
Source File: LdapName.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
/** * Adds the components of a name -- in order -- at a specified position * within this name. Components of this LDAP name at or after the * index (if any) of the first new component are shifted up * (away from index 0) to accommodate the new components. * * @param suffix The non-null components to add. * @param posn The index at which to add the new component. * Must be in the range [0,size()]. * * @return The updated name (not a new instance). * * @throws InvalidNameException if {@code suffix} is not a valid LDAP * name, or if the addition of the components would violate the * syntax rules of this LDAP name. * @throws IndexOutOfBoundsException * If posn is outside the specified range. */ public Name addAll(int posn, Name suffix) throws InvalidNameException { unparsed = null; // no longer valid if (suffix instanceof LdapName) { LdapName s = (LdapName) suffix; rdns.addAll(posn, s.rdns); } else { Enumeration<String> comps = suffix.getAll(); while (comps.hasMoreElements()) { rdns.add(posn++, (new Rfc2253Parser(comps.nextElement()). parseRdn())); } } return this; }
Example 9
Source File: LdapName.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
/** * Adds the components of a name -- in order -- at a specified position * within this name. Components of this LDAP name at or after the * index (if any) of the first new component are shifted up * (away from index 0) to accommodate the new components. * * @param suffix The non-null components to add. * @param posn The index at which to add the new component. * Must be in the range [0,size()]. * * @return The updated name (not a new instance). * * @throws InvalidNameException if <tt>suffix</tt> is not a valid LDAP * name, or if the addition of the components would violate the * syntax rules of this LDAP name. * @throws IndexOutOfBoundsException * If posn is outside the specified range. */ public Name addAll(int posn, Name suffix) throws InvalidNameException { unparsed = null; // no longer valid if (suffix instanceof LdapName) { LdapName s = (LdapName) suffix; rdns.addAll(posn, s.rdns); } else { Enumeration<String> comps = suffix.getAll(); while (comps.hasMoreElements()) { rdns.add(posn++, (new Rfc2253Parser(comps.nextElement()). parseRdn())); } } return this; }
Example 10
Source File: LdapName.java From Java8CN with Apache License 2.0 | 4 votes |
/** * Adds the components of a name -- in order -- at a specified position * within this name. Components of this LDAP name at or after the * index (if any) of the first new component are shifted up * (away from index 0) to accommodate the new components. * * @param suffix The non-null components to add. * @param posn The index at which to add the new component. * Must be in the range [0,size()]. * * @return The updated name (not a new instance). * * @throws InvalidNameException if <tt>suffix</tt> is not a valid LDAP * name, or if the addition of the components would violate the * syntax rules of this LDAP name. * @throws IndexOutOfBoundsException * If posn is outside the specified range. */ public Name addAll(int posn, Name suffix) throws InvalidNameException { unparsed = null; // no longer valid if (suffix instanceof LdapName) { LdapName s = (LdapName) suffix; rdns.addAll(posn, s.rdns); } else { Enumeration<String> comps = suffix.getAll(); while (comps.hasMoreElements()) { rdns.add(posn++, (new Rfc2253Parser(comps.nextElement()). parseRdn())); } } return this; }
Example 11
Source File: LdapName.java From hottub with GNU General Public License v2.0 | 4 votes |
/** * Adds the components of a name -- in order -- at a specified position * within this name. Components of this LDAP name at or after the * index (if any) of the first new component are shifted up * (away from index 0) to accommodate the new components. * * @param suffix The non-null components to add. * @param posn The index at which to add the new component. * Must be in the range [0,size()]. * * @return The updated name (not a new instance). * * @throws InvalidNameException if <tt>suffix</tt> is not a valid LDAP * name, or if the addition of the components would violate the * syntax rules of this LDAP name. * @throws IndexOutOfBoundsException * If posn is outside the specified range. */ public Name addAll(int posn, Name suffix) throws InvalidNameException { unparsed = null; // no longer valid if (suffix instanceof LdapName) { LdapName s = (LdapName) suffix; rdns.addAll(posn, s.rdns); } else { Enumeration<String> comps = suffix.getAll(); while (comps.hasMoreElements()) { rdns.add(posn++, (new Rfc2253Parser(comps.nextElement()). parseRdn())); } } return this; }
Example 12
Source File: LdapName.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
/** * Adds the components of a name -- in order -- at a specified position * within this name. Components of this LDAP name at or after the * index (if any) of the first new component are shifted up * (away from index 0) to accommodate the new components. * * @param suffix The non-null components to add. * @param posn The index at which to add the new component. * Must be in the range [0,size()]. * * @return The updated name (not a new instance). * * @throws InvalidNameException if <tt>suffix</tt> is not a valid LDAP * name, or if the addition of the components would violate the * syntax rules of this LDAP name. * @throws IndexOutOfBoundsException * If posn is outside the specified range. */ public Name addAll(int posn, Name suffix) throws InvalidNameException { unparsed = null; // no longer valid if (suffix instanceof LdapName) { LdapName s = (LdapName) suffix; rdns.addAll(posn, s.rdns); } else { Enumeration<String> comps = suffix.getAll(); while (comps.hasMoreElements()) { rdns.add(posn++, (new Rfc2253Parser(comps.nextElement()). parseRdn())); } } return this; }
Example 13
Source File: LdapName.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
/** * Adds the components of a name -- in order -- at a specified position * within this name. Components of this LDAP name at or after the * index (if any) of the first new component are shifted up * (away from index 0) to accommodate the new components. * * @param suffix The non-null components to add. * @param posn The index at which to add the new component. * Must be in the range [0,size()]. * * @return The updated name (not a new instance). * * @throws InvalidNameException if <tt>suffix</tt> is not a valid LDAP * name, or if the addition of the components would violate the * syntax rules of this LDAP name. * @throws IndexOutOfBoundsException * If posn is outside the specified range. */ public Name addAll(int posn, Name suffix) throws InvalidNameException { unparsed = null; // no longer valid if (suffix instanceof LdapName) { LdapName s = (LdapName) suffix; rdns.addAll(posn, s.rdns); } else { Enumeration<String> comps = suffix.getAll(); while (comps.hasMoreElements()) { rdns.add(posn++, (new Rfc2253Parser(comps.nextElement()). parseRdn())); } } return this; }
Example 14
Source File: LdapName.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
/** * Adds the components of a name -- in order -- at a specified position * within this name. Components of this LDAP name at or after the * index (if any) of the first new component are shifted up * (away from index 0) to accommodate the new components. * * @param suffix The non-null components to add. * @param posn The index at which to add the new component. * Must be in the range [0,size()]. * * @return The updated name (not a new instance). * * @throws InvalidNameException if <tt>suffix</tt> is not a valid LDAP * name, or if the addition of the components would violate the * syntax rules of this LDAP name. * @throws IndexOutOfBoundsException * If posn is outside the specified range. */ public Name addAll(int posn, Name suffix) throws InvalidNameException { unparsed = null; // no longer valid if (suffix instanceof LdapName) { LdapName s = (LdapName) suffix; rdns.addAll(posn, s.rdns); } else { Enumeration<String> comps = suffix.getAll(); while (comps.hasMoreElements()) { rdns.add(posn++, (new Rfc2253Parser(comps.nextElement()). parseRdn())); } } return this; }
Example 15
Source File: LdapName.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
/** * Adds the components of a name -- in order -- at a specified position * within this name. Components of this LDAP name at or after the * index (if any) of the first new component are shifted up * (away from index 0) to accommodate the new components. * * @param suffix The non-null components to add. * @param posn The index at which to add the new component. * Must be in the range [0,size()]. * * @return The updated name (not a new instance). * * @throws InvalidNameException if <tt>suffix</tt> is not a valid LDAP * name, or if the addition of the components would violate the * syntax rules of this LDAP name. * @throws IndexOutOfBoundsException * If posn is outside the specified range. */ public Name addAll(int posn, Name suffix) throws InvalidNameException { unparsed = null; // no longer valid if (suffix instanceof LdapName) { LdapName s = (LdapName) suffix; rdns.addAll(posn, s.rdns); } else { Enumeration<String> comps = suffix.getAll(); while (comps.hasMoreElements()) { rdns.add(posn++, (new Rfc2253Parser(comps.nextElement()). parseRdn())); } } return this; }
Example 16
Source File: LdapName.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
/** * Adds the components of a name -- in order -- at a specified position * within this name. Components of this LDAP name at or after the * index (if any) of the first new component are shifted up * (away from index 0) to accommodate the new components. * * @param suffix The non-null components to add. * @param posn The index at which to add the new component. * Must be in the range [0,size()]. * * @return The updated name (not a new instance). * * @throws InvalidNameException if <tt>suffix</tt> is not a valid LDAP * name, or if the addition of the components would violate the * syntax rules of this LDAP name. * @throws IndexOutOfBoundsException * If posn is outside the specified range. */ public Name addAll(int posn, Name suffix) throws InvalidNameException { unparsed = null; // no longer valid if (suffix instanceof LdapName) { LdapName s = (LdapName) suffix; rdns.addAll(posn, s.rdns); } else { Enumeration<String> comps = suffix.getAll(); while (comps.hasMoreElements()) { rdns.add(posn++, (new Rfc2253Parser(comps.nextElement()). parseRdn())); } } return this; }