/** * Indicates whether this result contains at least one control. * * @return {@code true} if this result contains at least one control, or * {@code false} if not. */ public boolean hasResponseControl() { return ldapException.hasResponseControl(); }
/** * Indicates whether this result contains at least one control. * * @return {@code true} if this result contains at least one control, or * {@code false} if not. */ public boolean hasResponseControl() { return ldapException.hasResponseControl(); }
/** * Indicates whether this result contains at least one control with the * specified OID. * * @param oid The object identifier for which to make the determination. It * must not be {@code null}. * * @return {@code true} if this result contains at least one control with * the specified OID, or {@code false} if not. */ public boolean hasResponseControl(final String oid) { return ldapException.hasResponseControl(oid); }
/** * Indicates whether this result contains at least one control with the * specified OID. * * @param oid The object identifier for which to make the determination. It * must not be {@code null}. * * @return {@code true} if this result contains at least one control with * the specified OID, or {@code false} if not. */ public boolean hasResponseControl(final String oid) { return ldapException.hasResponseControl(oid); }
/** * Sets the response controls for this connection. * * @param ldapException The exception containing the controls to use. */ private void setResponseControls( final com.unboundid.ldap.sdk.LDAPException ldapException) { if (ldapException.hasResponseControl()) { responseControls = LDAPControl.toLDAPControls(ldapException.getResponseControls()); } else { responseControls = null; } } }