nsILDAPMessage
| IID: | 973ff50f-2002-4f0c-b57d-2242156139a2 |
| Inherits From: | nsISupports |
This interface is implemented by the following components:
Constants
Properties
readonly AUTF8String dn
The Distinguished Name of the entry associated with this message.
readonly PRInt32 errorCode
The result code (aka lderrno) for this message.
IDL definitions for these constants live in nsILDAPErrors.idl.
readonly AUTF8String errorMessage
Additional error information optionally sent by the server.
readonly AUTF8String matchedDn
In LDAPv3, when the server returns any of the following errors: NO_SUCH_OBJECT, ALIAS_PROBLEM, INVALID_DN_SYNTAX, ALIAS_DEREF_PROBLEM, it also returns the closest existing DN to the entry requested.
readonly nsILDAPOperation operation
The operation this message originated from
readonly PRInt32 type
The result type of this message. Possible types listed below, the values chosen are taken from the draft-ietf-ldapext-ldap-c-api-04.txt and are the same ones used in the ldap.h include file from the Mozilla LDAP C SDK.
Methods
void getAttributes ( out PRUint32 count , out arrayof char* attributes )
void getBinaryValues ( char* attr , out PRUint32 count , out nsILDAPBERValue values )
void getValues ( char* attr , out PRUint32 count , out arrayof PRUnichar* values )
PRUnichar* toUnicode ( )
void getAttributes ( out PRUint32 count , out arrayof char* attributes )
Get all the attributes in this message.
- Arguments:
- count
- attributes
- Returns:
- array of all attributes in the current message
void getBinaryValues ( char* attr , out PRUint32 count , out nsILDAPBERValue values )
Get an array of all the attribute values in this message (a wrapper around the LDAP C SDK's get_values_len()).
- Arguments:
- attr: The attribute whose values are to be returned
- count: Number of values in the outbound array.
- values: Array of nsILDAPBERValue objects
void getValues ( char* attr , out PRUint32 count , out arrayof PRUnichar* values )
Get an array of all the attribute values in this message.
- Arguments:
- attr: The attribute whose values are to be returned
- count: Number of values in the outbound array.
- values: Array of values
Get an LDIF-like string representation of this message
- Returns:
- unicode encoded string representation.
References
This interface is passed as an argument to the following methods:
nsIAbLDAPAttributeMap.setCardPropertiesFromLDAPMessage, nsIAbLDAPCard.setMetaProperties, nsILDAPAutoCompFormatter.format, nsILDAPMessageListener.onLDAPMessage
Reference documentation is generated from Mozilla's source.
