C# Class Novell.Directory.Ldap.LdapResponse

A message received from an LdapServer in response to an asynchronous request.
Inheritance: LdapMessage
Mostra file Open project: EventStore/csharp-ldap Class Usage Examples

Private Properties

Property Type Description
LdapResponse System
RfcResultFactory Novell.Directory.Ldap.Asn1.Asn1Sequence
chkResultCode void
hasException bool

Public Methods

Method Description
LdapResponse ( InterThreadException ex, ReferralInfo activeReferral ) : System

Creates an LdapResponse using an LdapException. Used to wake up the user following an abandon. Note: The abandon doesn't have to be user initiated but may be the result of error conditions. Referral information is available if this connection created solely to follow a referral.

LdapResponse ( int type ) : System

Creates a SUCCESS response LdapMessage. Typically the response comes from a source other than a BER encoded Ldap message, such as from DSML. Other values which are allowed in a response are set to their empty values.

LdapResponse ( int type, int resultCode, System matchedDN, System serverMessage, System referrals, LdapControl controls ) : System

Creates a response LdapMessage from parameters. Typically the data comes from a source other than a BER encoded Ldap message, such as from DSML.

Private Methods

Method Description
LdapResponse ( RfcLdapMessage message ) : System

Creates a response LdapMessage when receiving an asynchronous response from a server.

RfcResultFactory ( int type, int resultCode, System matchedDN, System serverMessage, System referrals ) : Asn1Sequence
chkResultCode ( ) : void

Checks the resultCode and throws the appropriate exception.

hasException ( ) : bool

Indicates if this response is an embedded exception response

Method Details

LdapResponse() public method

Creates an LdapResponse using an LdapException. Used to wake up the user following an abandon. Note: The abandon doesn't have to be user initiated but may be the result of error conditions. Referral information is available if this connection created solely to follow a referral.
public LdapResponse ( InterThreadException ex, ReferralInfo activeReferral ) : System
ex InterThreadException The exception /// ///
activeReferral Novell.Directory.Ldap.Utilclass.ReferralInfo The referral actually used to create the /// connection ///
return System

LdapResponse() public method

Creates a SUCCESS response LdapMessage. Typically the response comes from a source other than a BER encoded Ldap message, such as from DSML. Other values which are allowed in a response are set to their empty values.
public LdapResponse ( int type ) : System
type int The message type as defined in LdapMessage. /// ///
return System

LdapResponse() public method

Creates a response LdapMessage from parameters. Typically the data comes from a source other than a BER encoded Ldap message, such as from DSML.
public LdapResponse ( int type, int resultCode, System matchedDN, System serverMessage, System referrals, LdapControl controls ) : System
type int The message type as defined in LdapMessage. /// ///
resultCode int The result code as defined in LdapException. /// ///
matchedDN System The name of the lowest entry that was matched /// for some error result codes, an empty string /// or null if none. /// ///
serverMessage System A diagnostic message returned by the server, /// an empty string or null if none. /// ///
referrals System The referral URLs returned for a REFERRAL result /// code or null if none. /// ///
controls LdapControl Any controls returned by the server or /// null if none. /// ///
return System