2 * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
6 // $Id: LDAPRequest.cpp,v 1.11 2000/08/31 17:43:49 rhafer Exp $
9 #include "LDAPRequest.h"
10 #include "LDAPReferral.h"
12 LDAPRequest::LDAPRequest(){
15 LDAPRequest::LDAPRequest(const LDAPRequest& req){
16 DEBUG(LDAP_DEBUG_TRACE, "LDAPRequest::LDAPRequest(LDAPRequest&)" << endl);
19 LDAPRequest::LDAPRequest(const LDAPAsynConnection* con,
20 const LDAPConstraints* cons, bool isReferral){
21 DEBUG(LDAP_DEBUG_TRACE,"LDAPRequest::LDAPRequest()" << endl);
24 cons=con->getConstraints();
26 m_cons=new LDAPConstraints( *cons);
27 m_isReferral=isReferral;
30 LDAPRequest::~LDAPRequest(){
31 DEBUG(LDAP_DEBUG_TRACE,"LDAPRequest::~LDAPRequest()" << endl);
35 const LDAPConstraints* LDAPRequest::getConstraints(){
39 const LDAPAsynConnection* LDAPRequest::getConnection(){
43 int LDAPRequest::getType() const {
47 int LDAPRequest::getMsgID() const {
51 bool LDAPRequest::isReferral() const {
56 bool LDAPRequest::doRebind() const {
57 cerr << "doRebind not implemented always returns true" << endl;