Package netscape.ldap.client.opers
Class JDAPResult
java.lang.Object
netscape.ldap.client.opers.JDAPResult
- Direct Known Subclasses:
JDAPAddResponse
,JDAPBindResponse
,JDAPCompareResponse
,JDAPDeleteResponse
,JDAPExtendedResponse
,JDAPModifyRDNResponse
,JDAPModifyResponse
,JDAPSearchResult
This class implements the ldap result where stores
the request status. It is the base class for all
the response except search response. This object is
sent from the server to the client interface.
LDAPResult ::= SEQUENCE { resultCode ENUMERATED { success (0), ... }, matchedDN LDAPDN, errorMessage LDAPString }Note that LDAPv3 supports referral within the LDAP Result. The added component is:
LDAPResult ::= SEQUENCE { ... errorMessage LDAPString, referral [3] Referral OPTIONAL }
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
protected BERElement
Private variableprotected String
protected String
protected String[]
protected int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Result code based on RFC1777static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the ber representation of the result.Gets the error message.Gets the matched dn.Retrieves string representation of the result.String[]
Retrieves referrals from the LDAP Result.int
Gets the result code.toString()
Retrieves string representation of the result.
-
Field Details
-
SUCCESS
public static final int SUCCESSResult code based on RFC1777- See Also:
-
OPERATION_ERROR
public static final int OPERATION_ERROR- See Also:
-
PROTOCOL_ERROR
public static final int PROTOCOL_ERROR- See Also:
-
TIME_LIMIT_EXCEEDED
public static final int TIME_LIMIT_EXCEEDED- See Also:
-
SIZE_LIMIT_EXCEEDED
public static final int SIZE_LIMIT_EXCEEDED- See Also:
-
COMPARE_FALSE
public static final int COMPARE_FALSE- See Also:
-
COMPARE_TRUE
public static final int COMPARE_TRUE- See Also:
-
AUTH_METHOD_NOT_SUPPORTED
public static final int AUTH_METHOD_NOT_SUPPORTED- See Also:
-
STRONG_AUTH_REQUIRED
public static final int STRONG_AUTH_REQUIRED- See Also:
-
LDAP_PARTIAL_RESULTS
public static final int LDAP_PARTIAL_RESULTS- See Also:
-
REFERRAL
public static final int REFERRAL- See Also:
-
ADMIN_LIMIT_EXCEEDED
public static final int ADMIN_LIMIT_EXCEEDED- See Also:
-
UNAVAILABLE_CRITICAL_EXTENSION
public static final int UNAVAILABLE_CRITICAL_EXTENSION- See Also:
-
CONFIDENTIALITY_REQUIRED
public static final int CONFIDENTIALITY_REQUIRED- See Also:
-
SASL_BIND_IN_PROGRESS
public static final int SASL_BIND_IN_PROGRESS- See Also:
-
NO_SUCH_ATTRIBUTE
public static final int NO_SUCH_ATTRIBUTE- See Also:
-
UNDEFINED_ATTRIBUTE_TYPE
public static final int UNDEFINED_ATTRIBUTE_TYPE- See Also:
-
INAPPROPRIATE_MATCHING
public static final int INAPPROPRIATE_MATCHING- See Also:
-
CONSTRAINT_VIOLATION
public static final int CONSTRAINT_VIOLATION- See Also:
-
ATTRIBUTE_OR_VALUE_EXISTS
public static final int ATTRIBUTE_OR_VALUE_EXISTS- See Also:
-
INVALID_ATTRIBUTE_SYNTAX
public static final int INVALID_ATTRIBUTE_SYNTAX- See Also:
-
NO_SUCH_OBJECT
public static final int NO_SUCH_OBJECT- See Also:
-
ALIAS_PROBLEM
public static final int ALIAS_PROBLEM- See Also:
-
INVALID_DN_SYNTAX
public static final int INVALID_DN_SYNTAX- See Also:
-
IS_LEAF
public static final int IS_LEAF- See Also:
-
ALIAS_DEREFERENCING_PROBLEM
public static final int ALIAS_DEREFERENCING_PROBLEM- See Also:
-
INAPPROPRIATE_AUTHENTICATION
public static final int INAPPROPRIATE_AUTHENTICATION- See Also:
-
INVALID_CREDENTIALS
public static final int INVALID_CREDENTIALS- See Also:
-
INSUFFICIENT_ACCESS_RIGHTS
public static final int INSUFFICIENT_ACCESS_RIGHTS- See Also:
-
BUSY
public static final int BUSY- See Also:
-
UNAVAILABLE
public static final int UNAVAILABLE- See Also:
-
UNWILLING_TO_PERFORM
public static final int UNWILLING_TO_PERFORM- See Also:
-
LOOP_DETECT
public static final int LOOP_DETECT- See Also:
-
NAMING_VIOLATION
public static final int NAMING_VIOLATION- See Also:
-
OBJECT_CLASS_VIOLATION
public static final int OBJECT_CLASS_VIOLATION- See Also:
-
NOT_ALLOWED_ON_NONLEAF
public static final int NOT_ALLOWED_ON_NONLEAF- See Also:
-
NOT_ALLOWED_ON_RDN
public static final int NOT_ALLOWED_ON_RDN- See Also:
-
ENTRY_ALREADY_EXISTS
public static final int ENTRY_ALREADY_EXISTS- See Also:
-
OBJECT_CLASS_MODS_PROHIBITED
public static final int OBJECT_CLASS_MODS_PROHIBITED- See Also:
-
AFFECTS_MULTIPLE_DSAS
public static final int AFFECTS_MULTIPLE_DSAS- See Also:
-
OTHER
public static final int OTHER- See Also:
-
SERVER_DOWN
public static final int SERVER_DOWN- See Also:
-
PARAM_ERROR
public static final int PARAM_ERROR- See Also:
-
CONNECT_ERROR
public static final int CONNECT_ERROR- See Also:
-
LDAP_NOT_SUPPORTED
public static final int LDAP_NOT_SUPPORTED- See Also:
-
CONTROL_NOT_FOUND
public static final int CONTROL_NOT_FOUND- See Also:
-
NO_RESULTS_RETURNED
public static final int NO_RESULTS_RETURNED- See Also:
-
MORE_RESULTS_TO_RETURN
public static final int MORE_RESULTS_TO_RETURN- See Also:
-
CLIENT_LOOP
public static final int CLIENT_LOOP- See Also:
-
REFERRAL_LIMIT_EXCEEDED
public static final int REFERRAL_LIMIT_EXCEEDED- See Also:
-
m_element
Private variable -
m_result_code
protected int m_result_code -
m_matched_dn
-
m_error_message
-
m_referrals
-
-
Constructor Details
-
JDAPResult
Constructs ldap result.- Parameters:
element
- ber element- Throws:
IOException
-
-
Method Details
-
getResultCode
public int getResultCode()Gets the result code.- Returns:
- result code
-
getMatchedDN
Gets the matched dn.- Returns:
- matched dn
-
getErrorMessage
Gets the error message.- Returns:
- error message
-
getReferrals
Retrieves referrals from the LDAP Result.- Returns:
- list of referrals in URL format
-
getBERElement
Retrieves the ber representation of the result.- Returns:
- ber representation of the result
-
getParamString
Retrieves string representation of the result. Usually, the inherited class calls this to retrieve the parameter string.- Returns:
- string representation
-
toString
Retrieves string representation of the result.
-