2 * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
8 #include "LDAPRequest.h"
9 #include "LDAPException.h"
11 #include "LDAPResult.h"
12 #include "LDAPExtResult.h"
14 LDAPExtResult::LDAPExtResult(const LDAPRequest* req, LDAPMessage* msg) :
16 DEBUG(LDAP_DEBUG_CONSTRUCT,"LDAPExtResult::LDAPExtResult()" << endl);
19 LDAP* lc = req->getConnection()->getSessionHandle();
20 int err=ldap_parse_extended_result(lc, msg, &oid, &data, 0);
21 if(err != LDAP_SUCCESS){
24 throw LDAPException(err);
29 m_data=string(data->bv_val, data->bv_len);
35 LDAPExtResult::~LDAPExtResult(){
36 DEBUG(LDAP_DEBUG_DESTROY,"LDAPExtResult::~LDAPExtResult()" << endl);
39 const string& LDAPExtResult::getResponseOid() const{
43 const string& LDAPExtResult::getResponse() const{