@Test public void testEncodeUrl_SpacesInValue() { LdapRdn rdn = new LdapRdn("o = my organization "); assertThat(rdn.encodeUrl()).isEqualTo("o=my%20organization"); }
public String encodeUrl() { StringBuffer sb = new StringBuffer(DEFAULT_BUFFER_SIZE); for (Iterator iter = components.values().iterator(); iter.hasNext();) { LdapRdnComponent component = (LdapRdnComponent) iter.next(); sb.append(component.encodeUrl()); if (iter.hasNext()) { sb.append("+"); } } return sb.toString(); }
LdapRdn implements Serializable, Comparable { public String encodeUrl() { StringBuffer sb = new StringBuffer(DEFAULT_BUFFER_SIZE); for (Iterator iter = components.values().iterator(); iter.hasNext();) { LdapRdnComponent component = (LdapRdnComponent) iter.next(); sb.append(component.encodeUrl()); if (iter.hasNext()) { sb.append("+"); } } return sb.toString(); } }
LdapRdn implements Serializable, Comparable { public String encodeUrl() { StringBuffer sb = new StringBuffer(DEFAULT_BUFFER_SIZE); for (Iterator iter = components.values().iterator(); iter.hasNext();) { LdapRdnComponent component = (LdapRdnComponent) iter.next(); sb.append(component.encodeUrl()); if (iter.hasNext()) { sb.append("+"); } } return sb.toString(); } LdapRdn();  LdapRdn(String string);  LdapRdn(String key, String value); }
LdapRdn implements Serializable, Comparable { public String encodeUrl() { StringBuffer sb = new StringBuffer(DEFAULT_BUFFER_SIZE); for (Iterator iter = components.values().iterator(); iter.hasNext();) { LdapRdnComponent component = (LdapRdnComponent) iter.next(); sb.append(component.encodeUrl()); if (iter.hasNext()) { sb.append("+"); } } return sb.toString(); } LdapRdn();  LdapRdn(String string);  LdapRdn(String key, String value); void addComponent(LdapRdnComponent rdnComponent); List getComponents(); LdapRdnComponent getComponent(); LdapRdnComponent getComponent(int idx); String getLdapEncoded(); String encodeUrl(); int compareTo(Object obj); boolean equals(Object obj); int hashCode(); String toString(); String getValue(); String getKey(); String getValue(String key); LdapRdn immutableLdapRdn(); }
LdapRdn implements Serializable, Comparable { public String encodeUrl() { StringBuffer sb = new StringBuffer(DEFAULT_BUFFER_SIZE); for (Iterator iter = components.values().iterator(); iter.hasNext();) { LdapRdnComponent component = (LdapRdnComponent) iter.next(); sb.append(component.encodeUrl()); if (iter.hasNext()) { sb.append("+"); } } return sb.toString(); } LdapRdn();  LdapRdn(String string);  LdapRdn(String key, String value); void addComponent(LdapRdnComponent rdnComponent); List getComponents(); LdapRdnComponent getComponent(); LdapRdnComponent getComponent(int idx); String getLdapEncoded(); String encodeUrl(); int compareTo(Object obj); boolean equals(Object obj); int hashCode(); String toString(); String getValue(); String getKey(); String getValue(String key); LdapRdn immutableLdapRdn();  }