48 49 if (ref != null && ref.size() > 0) { 50 int len = ref.size(); 51 referrals = new String[len]; 52 for (int i = 0; i < len; i++) { 53 // ref is a list of single-String Vectors 54 referrals[i] = ref.elementAt(i).elementAt(0); 55 } 56 } 57 exception = LdapCtx.mapErrorCode(status, msg); 58 // matchedDN ignored for now; could be used to set resolvedName 59 // exception.setResolvedName(new CompositeName().add(matchedDN)); 60 61 this.controls = controls; 62 } 63 64 /** 65 * Retrieves the object identifier of the response. 66 * 67 * @return A possibly null object identifier string representing the LDAP 68 * <tt>ExtendedResponse.responseName</tt> component. 69 */ 70 public String getID() { 71 return oid; 72 } 73 74 /** 75 * Retrieves the ASN.1 BER encoded value of the LDAP extended operation 76 * response. Null is returned if the value is absent from the response 77 * sent by the LDAP server. 78 * The result is the raw BER bytes including the tag and length of 79 * the response value. It does not include the response OID. 80 * 81 * @return A possibly null byte array representing the ASN.1 BER encoded 82 * contents of the LDAP <tt>ExtendedResponse.response</tt> 83 * component. 84 */ 85 public byte[] getEncodedValue() { 86 return extensionValue; 87 } 88 89 /** 90 * Retrieves the referral(s) sent by the server. 91 * 92 * @return A possibly null array of referrals, each of which is represented 93 * by a URL string. If null, no referral was sent by the server. 94 */ 95 public String[] getReferrals() { 96 return referrals; 97 } 98 99 /** 100 * Retrieves the exception as constructed using information 101 * sent by the server. 102 * @return A possibly null exception as constructed using information | 48 49 if (ref != null && ref.size() > 0) { 50 int len = ref.size(); 51 referrals = new String[len]; 52 for (int i = 0; i < len; i++) { 53 // ref is a list of single-String Vectors 54 referrals[i] = ref.elementAt(i).elementAt(0); 55 } 56 } 57 exception = LdapCtx.mapErrorCode(status, msg); 58 // matchedDN ignored for now; could be used to set resolvedName 59 // exception.setResolvedName(new CompositeName().add(matchedDN)); 60 61 this.controls = controls; 62 } 63 64 /** 65 * Retrieves the object identifier of the response. 66 * 67 * @return A possibly null object identifier string representing the LDAP 68 * {@code ExtendedResponse.responseName} component. 69 */ 70 public String getID() { 71 return oid; 72 } 73 74 /** 75 * Retrieves the ASN.1 BER encoded value of the LDAP extended operation 76 * response. Null is returned if the value is absent from the response 77 * sent by the LDAP server. 78 * The result is the raw BER bytes including the tag and length of 79 * the response value. It does not include the response OID. 80 * 81 * @return A possibly null byte array representing the ASN.1 BER encoded 82 * contents of the LDAP {@code ExtendedResponse.response} 83 * component. 84 */ 85 public byte[] getEncodedValue() { 86 return extensionValue; 87 } 88 89 /** 90 * Retrieves the referral(s) sent by the server. 91 * 92 * @return A possibly null array of referrals, each of which is represented 93 * by a URL string. If null, no referral was sent by the server. 94 */ 95 public String[] getReferrals() { 96 return referrals; 97 } 98 99 /** 100 * Retrieves the exception as constructed using information 101 * sent by the server. 102 * @return A possibly null exception as constructed using information |