ldapsdk 0.0.1
Public Member Functions | Static Public Attributes

LDAPConstraints Class Reference

This class represents some options that can be set for a LDAPConnection operation. More...

#include <LDAPConstraints.h>

List of all members.

Public Member Functions

 LDAPConstraints ()
 LDAPConstraints (const LDAPConstraints &c)
 ~LDAPConstraints ()
void setAliasDeref (int deref)
void setMaxTime (int t)
void setSizeLimit (int s)
void setReferralChase (bool rc)
void setHopLimit (int hop)
void setReferralRebind (const LDAPRebind *rebind)
void setServerControls (const LDAPControlSet *ctrls)
void setClientControls (const LDAPControlSet *ctrls)
int getAliasDeref () const
int getMaxTime () const
int getSizeLimit () const
const LDAPRebindgetReferralRebind () const
const LDAPControlSetgetServerControls () const
const LDAPControlSetgetClientControls () const
LDAPControl ** getSrvCtrlsArray () const
LDAPControl ** getClCtrlsArray () const
timeval * getTimeoutStruct () const
bool getReferralChase () const
int getHopLimit () const

Static Public Attributes

static const int DEREF_NEVER = 0x00
static const int DEREF_SEARCHING = 0x01
static const int DEREF_FINDING = 0x02
static const int DEREF_ALWAYS = 0x04

Detailed Description

This class represents some options that can be set for a LDAPConnection operation.

Namely these are time and size limits. Options for referral chasing and a default set of client of server controls to be used with every request


Constructor & Destructor Documentation

LDAPConstraints::LDAPConstraints ( )
LDAPConstraints::LDAPConstraints ( const LDAPConstraints c)

References DEBUG, and LDAP_DEBUG_CONSTRUCT.

LDAPConstraints::~LDAPConstraints ( )

References DEBUG, and LDAP_DEBUG_DESTROY.


Member Function Documentation

int LDAPConstraints::getAliasDeref ( ) const

References DEBUG, and LDAP_DEBUG_TRACE.

Referenced by LDAPSearchRequest::sendRequest().

LDAPControl ** LDAPConstraints::getClCtrlsArray ( ) const
const LDAPControlSet * LDAPConstraints::getClientControls ( ) const

References DEBUG, and LDAP_DEBUG_TRACE.

int LDAPConstraints::getHopLimit ( ) const

References DEBUG, and LDAP_DEBUG_TRACE.

Referenced by LDAPMessageQueue::chaseReferral().

int LDAPConstraints::getMaxTime ( ) const

References DEBUG, and LDAP_DEBUG_TRACE.

bool LDAPConstraints::getReferralChase ( ) const

References DEBUG, and LDAP_DEBUG_TRACE.

Referenced by LDAPMessageQueue::getNext().

const LDAPRebind * LDAPConstraints::getReferralRebind ( ) const
const LDAPControlSet * LDAPConstraints::getServerControls ( ) const

References DEBUG, and LDAP_DEBUG_TRACE.

int LDAPConstraints::getSizeLimit ( ) const

References DEBUG, and LDAP_DEBUG_TRACE.

Referenced by LDAPSearchRequest::sendRequest().

LDAPControl ** LDAPConstraints::getSrvCtrlsArray ( ) const
timeval * LDAPConstraints::getTimeoutStruct ( ) const

References DEBUG, and LDAP_DEBUG_TRACE.

Referenced by LDAPSearchRequest::sendRequest().

void LDAPConstraints::setAliasDeref ( int  deref)
void LDAPConstraints::setClientControls ( const LDAPControlSet ctrls)

References DEBUG, and LDAP_DEBUG_TRACE.

void LDAPConstraints::setHopLimit ( int  hop)
void LDAPConstraints::setMaxTime ( int  t)
void LDAPConstraints::setReferralChase ( bool  rc)
void LDAPConstraints::setReferralRebind ( const LDAPRebind rebind)

References DEBUG, and LDAP_DEBUG_TRACE.

void LDAPConstraints::setServerControls ( const LDAPControlSet ctrls)

References DEBUG, and LDAP_DEBUG_TRACE.

void LDAPConstraints::setSizeLimit ( int  s)

Member Data Documentation

const int LDAPConstraints::DEREF_ALWAYS = 0x04 [static]

Referenced by setAliasDeref().

const int LDAPConstraints::DEREF_FINDING = 0x02 [static]

Referenced by setAliasDeref().

const int LDAPConstraints::DEREF_NEVER = 0x00 [static]

Referenced by LDAPConstraints(), and setAliasDeref().

const int LDAPConstraints::DEREF_SEARCHING = 0x01 [static]

Referenced by setAliasDeref().


The documentation for this class was generated from the following files: