CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_secure_resolver.h
1
2
3#pragma once
4
5#include <xml/xml_resolver.h>
6#include <system/shared_ptr.h>
7
8
10namespace System
11{
12namespace Net
13{
14class ICredentials;
15} // namespace Net
16class String;
17class TypeInfo;
18class Uri;
19} // namespace System
21
22namespace System {
23
24namespace Xml {
25
31class ASPOSECPP_SHARED_CLASS XmlSecureResolver : public XmlResolver
32{
34 typedef XmlResolver BaseType;
35
36 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
37 ASPOSECPP_SHARED_RTTI_INFO_DECL();
38
39public:
40
43
44public:
45
48 ASPOSECPP_SHARED_API void set_Credentials(SharedPtr<Net::ICredentials> value) override;
49
53 ASPOSECPP_SHARED_API XmlSecureResolver(const SharedPtr<XmlResolver>& resolver, const String& securityUrl);
54
65 ASPOSECPP_SHARED_API SharedPtr<Object> GetEntity(SharedPtr<Uri> absoluteUri, String role, const TypeInfo& ofObjectToReturn) override;
74 ASPOSECPP_SHARED_API SharedPtr<Uri> ResolveUri(SharedPtr<Uri> baseUri, String relativeUri) override;
75
76protected:
77
79 #ifdef ASPOSE_GET_SHARED_MEMBERS
80 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
81 #endif
83
84private:
85
86 SharedPtr<XmlResolver> _resolver;
87
88};
89
90} // namespace Xml
91} // namespace System
92
93
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
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
Represents a particular type and provides information about it.
Definition: type_info.h:109
Resolves external XML resources named by a Uniform Resource Identifier (URI).
Definition: xml_resolver.h:27
Helps to secure another implementation of XmlResolver by wrapping the XmlResolver object and restrict...
Definition: xml_secure_resolver.h:32
void set_Credentials(SharedPtr< Net::ICredentials > value) override
Sets credentials used to authenticate web requests.
XmlSecureResolver(const SharedPtr< XmlResolver > &resolver, const String &securityUrl)
Initializes a new instance of the XmlSecureResolver class with the XmlResolver and URL provided.
SharedPtr< Uri > ResolveUri(SharedPtr< Uri > baseUri, String relativeUri) override
Resolves the absolute URI from the base and relative URIs by calling ResolveUri on the underlying Xml...
SharedPtr< Object > GetEntity(SharedPtr< Uri > absoluteUri, String role, const TypeInfo &ofObjectToReturn) override
Maps a URI to an object that contains the actual resource.
@ TypeInfo
Specifies that the member is a type.
@ Xml
Serialize according to the XML 1.0 rules.
Definition: db_command.h:9