netscape.ldap

Class LDAPResponse

Implemented Interfaces:
java.io.Serializable
Known Direct Subclasses:
LDAPExtendedResponse

public class LDAPResponse
extends LDAPMessage

Represents the response to a particular LDAP operation.
Version:
1.0
See Also:
Serialized Form

Field Summary

Fields inherited from class netscape.ldap.LDAPMessage

ABANDON_REQUEST, ADD_REQUEST, ADD_RESPONSE, BIND_REQUEST, BIND_RESPONSE, COMPARE_REQUEST, COMPARE_RESPONSE, DEL_REQUEST, DEL_RESPONSE, EXTENDED_REQUEST, EXTENDED_RESPONSE, MODIFY_RDN_REQUEST, MODIFY_RDN_RESPONSE, MODIFY_REQUEST, MODIFY_RESPONSE, SEARCH_REQUEST, SEARCH_RESPONSE, SEARCH_RESULT, SEARCH_RESULT_REFERENCE, UNBIND_REQUEST

Method Summary

String
getErrorMessage()
Returns any error message in the response.
String
getMatchedDN()
Returns the partially matched DN field, if any, in a server response.
String[]
getReferrals()
Returns all referrals, if any, in a server response.
int
getResultCode()
Returns the result code in a server response.

Methods inherited from class netscape.ldap.LDAPMessage

getControls, getMessageID, getType, toString

Method Details

getErrorMessage

public String getErrorMessage()
Returns any error message in the response.
Returns:
the error message of the last error (or null if no message was set).

getMatchedDN

public String getMatchedDN()
Returns the partially matched DN field, if any, in a server response.
Returns:
the maximal subset of a DN to match, or null.

getReferrals

public String[] getReferrals()
Returns all referrals, if any, in a server response.
Returns:
a list of referrals or null.

getResultCode

public int getResultCode()
Returns the result code in a server response.
Returns:
the result code.