1 /*	$NetBSD: LDAPExtRequest.h,v 1.3 2021/08/14 16:14:49 christos Exp $	*/
2 
3 // $OpenLDAP$
4 /*
5  * Copyright 2000-2021 The OpenLDAP Foundation, All Rights Reserved.
6  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
7  */
8 
9 #ifndef LDAP_EXT_REQUEST_H
10 #define LDAP_EXT_REQUEST_H
11 
12 #include <LDAPRequest.h>
13 
14 class LDAPExtRequest : LDAPRequest {
15 
16     public:
17         LDAPExtRequest(const LDAPExtRequest& req);
18         LDAPExtRequest(const std::string& oid, const std::string& data,
19                 LDAPAsynConnection *connect, const LDAPConstraints *cons,
20                 bool isReferral=false, const LDAPRequest* parent=0);
21         virtual ~LDAPExtRequest();
22         virtual LDAPMessageQueue* sendRequest();
23         virtual LDAPRequest* followReferral(LDAPMsg* urls);
24 
25     private:
26         std::string m_oid;
27         std::string m_data;
28 };
29 
30 #endif // LDAP_EXT_REQUEST_H
31