CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
http_web_client_protocol.h
1
2#pragma once
3#include <security/cryptography/x509_certificates/x509_certificate_collection.h>
4#include <system/iasyncresult.h>
5#include <system/object.h>
6#include <system/shared_ptr.h>
7#include <system/type_info.h>
8
9#include <net/cookie_container.h>
10#include <net/http_web_response.h>
11#include <net/iweb_proxy.h>
12#include <net/web/services/protocol/web_client_protocol.h>
13
14namespace System { namespace Web { namespace Services { namespace Protocols {
15
21{
22public:
25 ASPOSECPP_SHARED_API bool get_AllowAutoRedirect();
28 ASPOSECPP_SHARED_API void set_AllowAutoRedirect(bool value);
41 ASPOSECPP_SHARED_API bool get_EnableDecompression();
44 ASPOSECPP_SHARED_API void set_EnableDecompression(bool value);
50 ASPOSECPP_SHARED_API void set_Proxy(System::SharedPtr<Net::IWebProxy> value);
53 ASPOSECPP_SHARED_API String get_UserAgent();
56 ASPOSECPP_SHARED_API void set_UserAgent(String value);
59 ASPOSECPP_SHARED_API bool get_UnsafeAuthenticatedConnectionSharing();
62 ASPOSECPP_SHARED_API void set_UnsafeAuthenticatedConnectionSharing(bool value);
63
66 ASPOSECPP_SHARED_API virtual void CheckForCookies(System::SharedPtr<Net::HttpWebResponse> response);
69
70protected:
72 ASPOSECPP_SHARED_API HttpWebClientProtocol();
73
77 ASPOSECPP_SHARED_API System::SharedPtr<Net::WebResponse>
80 ASPOSECPP_SHARED_API System::SharedPtr<Net::WebResponse>
83 ASPOSECPP_SHARED_API void CancelAsync(System::SharedPtr<Object> userState);
84
85private:
87 bool allowAutoRedirect;
89 bool enableDecompression;
97 String userAgent;
99 bool _unsafeAuthenticated;
100};
101
102}}}} // namespace System::Web::Services::Protocols
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
This base class is used in all XML Web service client proxies that use HTTP. Objects of this class sh...
Definition: http_web_client_protocol.h:21
System::SharedPtr< Net::WebResponse > GetWebResponse(System::SharedPtr< Net::WebRequest > request, System::SharedPtr< IAsyncResult > result) override
Creates a WebResponse-class instance for the specified request.
bool get_EnableDecompression()
Gets a value that indicates if decompression is enabled.
void set_UserAgent(String value)
Sets a value of the 'User-Agent' header.
System::SharedPtr< Net::IWebProxy > get_Proxy()
Gets proxy information.
System::SharedPtr< Net::WebRequest > GetWebRequest(System::SharedPtr< Uri > uri) override
Creates a WebRequest-class instance for the specified URI.
void set_CookieContainer(System::SharedPtr< System::Net::CookieContainer > value)
Sets a container that is used to store cookies.
void set_EnableDecompression(bool value)
Sets a value that indicates if decompression is enabled.
void set_Proxy(System::SharedPtr< Net::IWebProxy > value)
Sets proxy information.
void set_UnsafeAuthenticatedConnectionSharing(bool value)
Sets a value that indicates if the connection sharing is enabled when the client uses NTLM authentica...
bool get_UnsafeAuthenticatedConnectionSharing()
Gets a value that indicates if the connection sharing is enabled when the client uses NTLM authentica...
bool get_AllowAutoRedirect()
Gets a value that indicates if the client follows server redirects.
void UnregisterMapping(System::SharedPtr< Object > userState)
String get_UserAgent()
Gets a value of the 'User-Agent' header.
void CancelAsync(System::SharedPtr< Object > userState)
void set_AllowAutoRedirect(bool value)
Sets a value that indicates if the client follows server redirects.
virtual void CheckForCookies(System::SharedPtr< Net::HttpWebResponse > response)
Appends cookies from the specified request to the internal cookie container.
System::SharedPtr< Net::WebResponse > GetWebResponse(System::SharedPtr< Net::WebRequest > request) override
Creates a WebResponse-class instance for the specified request.
System::SharedPtr< System::Net::CookieContainer > get_CookieContainer()
Gets a container that is used to store cookies.
System::SharedPtr< Security::Cryptography::X509Certificates::X509CertificateCollection > get_ClientCertificates()
Returns the collection of the client certificates.
This base class is used in all XML Web service client proxies that were created using ASP....
Definition: web_client_protocol.h:20
Definition: db_command.h:9