2000-10-03 14:50:44 -04:00
|
|
|
/*
|
|
|
|
|
* Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
|
|
|
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef LDAP_REFERRAL_EXCEPTION_H
|
|
|
|
|
#define LDAP_REFERRAL_EXCEPTION_H
|
|
|
|
|
|
|
|
|
|
#include <list>
|
2001-03-15 06:07:58 -05:00
|
|
|
#include <LDAPMessage.h>
|
|
|
|
|
#include <LDAPUrlList.h>
|
2000-10-03 14:50:44 -04:00
|
|
|
|
|
|
|
|
class LDAPUrlList;
|
|
|
|
|
|
2001-02-19 06:34:28 -05:00
|
|
|
/**
|
|
|
|
|
* This class extends LDAPException and is used to signalize Referrals
|
|
|
|
|
* there were received during synchronous LDAP-operations
|
|
|
|
|
*/
|
2000-10-03 14:50:44 -04:00
|
|
|
class LDAPReferralException : public LDAPException{
|
|
|
|
|
|
|
|
|
|
public :
|
2001-02-19 06:34:28 -05:00
|
|
|
/**
|
|
|
|
|
* Creates an object that is initialized with a list of URLs
|
|
|
|
|
*/
|
2000-10-03 14:50:44 -04:00
|
|
|
LDAPReferralException(const LDAPUrlList& urls);
|
2001-02-19 06:34:28 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Destructor
|
|
|
|
|
*/
|
2000-10-03 14:50:44 -04:00
|
|
|
~LDAPReferralException();
|
2001-02-19 06:34:28 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return The List of URLs of the Referral/Search Reference
|
|
|
|
|
*/
|
2000-10-03 14:50:44 -04:00
|
|
|
const LDAPUrlList& getUrls();
|
2001-02-19 06:34:28 -05:00
|
|
|
|
|
|
|
|
private :
|
|
|
|
|
LDAPUrlList m_urlList;
|
2000-10-03 14:50:44 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif //LDAP_REFERRAL_EXCEPTION_H
|