Inherits System::Object.
Public Member Functions | |
| ASPOSECPP_SHARED_API String | get_AbsolutePath () const |
| Returns the absolute path of the URI. More... | |
| ASPOSECPP_SHARED_API String | get_AbsoluteUri () const |
| Returns the absolute URI. More... | |
| ASPOSECPP_SHARED_API String | get_LocalPath () const |
| Returns the operating system representation of the file name referenced by the URI represented by the current object. More... | |
| ASPOSECPP_SHARED_API String | get_Authority () const |
| Returns the host name and the port number for a server. More... | |
| ASPOSECPP_SHARED_API UriHostNameType | get_HostNameType () const |
| Returns the host name type. More... | |
| ASPOSECPP_SHARED_API bool | get_IsDefaultPort () const |
| Determines if the URI represented by the current object has defualt port for the URI's scheme. More... | |
| ASPOSECPP_SHARED_API bool | get_IsFile () const |
| Determines if the URI represented by the current object is a file. More... | |
| ASPOSECPP_SHARED_API bool | get_IsLoopback () const |
| Determines if the URI represented by the current object references a local host. More... | |
| ASPOSECPP_SHARED_API String | get_PathAndQuery () const |
| Returns the absolute path and query components of the URI represented by the current object separated by a question mark (?). More... | |
| ASPOSECPP_SHARED_API ArrayPtr< String > | get_Segments () const |
| Returns an array of strings containing the path segments of the URI represented by the current object. More... | |
| ASPOSECPP_SHARED_API bool | get_IsUnc () const |
| Determines if the URI represented by the current object is a UNC path. More... | |
| ASPOSECPP_SHARED_API String | get_Host () const |
| Returns the host name. More... | |
| ASPOSECPP_SHARED_API int32_t | get_Port () const |
| Returns the port number of the URI represented by the current object. More... | |
| ASPOSECPP_SHARED_API String | get_Query () const |
| Returns the query information included in the URI represented by the current object. More... | |
| ASPOSECPP_SHARED_API String | get_Fragment () const |
| Returns the escaped URI fragment. More... | |
| ASPOSECPP_SHARED_API String | get_Scheme () const |
| Returns the scheme of the URI represented by the current object. More... | |
| ASPOSECPP_SHARED_API String | get_OriginalString () const |
| Returns the URI string that was passed to the constructor when current object was constructed. More... | |
| ASPOSECPP_SHARED_API String | get_DnsSafeHost () const |
| Returns an unescaped host name. More... | |
| ASPOSECPP_SHARED_API String | get_IdnHost () const |
| Returns an International Domain Name of the host. More... | |
| ASPOSECPP_SHARED_API bool | get_IsAbsoluteUri () const |
| Determines if the URI represented by the current object is absolute. More... | |
| ASPOSECPP_SHARED_API bool | get_UserEscaped () const |
| Determines if the URI string passed to the constructor of the current object was fully escaped. More... | |
| ASPOSECPP_SHARED_API String | get_UserInfo () const |
| Returns a uer name, password and other user information associated with the URI represented by the current object. More... | |
| ASPOSECPP_SHARED_API | Uri (const String &uriString) |
| ASPOSECPP_SHARED_API | Uri (const String &uriString, bool dontEscape) |
| ASPOSECPP_SHARED_API | Uri (const SharedPtr< Uri > &baseUri, const String &relativeUri, bool dontEscape) |
| ASPOSECPP_SHARED_API | Uri (const String &uriString, UriKind uriKind) |
| ASPOSECPP_SHARED_API | Uri (const SharedPtr< Uri > &baseUri, const String &relativeUri) |
| ASPOSECPP_SHARED_API | Uri (const SharedPtr< Uri > &baseUri, SharedPtr< Uri > relativeUri) |
| ASPOSECPP_SHARED_API String | GetLeftPart (UriPartial part) |
| virtual ASPOSECPP_SHARED_API int32_t | GetHashCode () const override |
| virtual ASPOSECPP_SHARED_API String | ToString () ASPOSE_CONST override |
| Returns the string representation of the URI represented by the current object. More... | |
| virtual ASPOSECPP_SHARED_API bool | Equals (SharedPtr< Object > comparand) override |
| ASPOSECPP_SHARED_API SharedPtr< Uri > | MakeRelativeUri (SharedPtr< Uri > uri) |
| ASPOSECPP_SHARED_API String | MakeRelative (SharedPtr< Uri > toUri) |
| ASPOSECPP_SHARED_API String | GetComponents (UriComponents components, UriFormat format) const |
| ASPOSECPP_SHARED_API bool | IsWellFormedOriginalString () const |
| Indicates whether the string used to construct this Uri was well-formed and is not required to be further escaped. More... | |
| ASPOSECPP_SHARED_API bool | IsBaseOf (const SharedPtr< Uri > &uri) const |
Public Member Functions inherited from System::Object | |
| ASPOSECPP_SHARED_API | Object () |
| Creates object. Initializes all internal data structures. More... | |
| virtual ASPOSECPP_SHARED_API | ~Object () |
| Destroys object. Frees all internal data structures. More... | |
| ASPOSECPP_SHARED_API | Object (Object const &x) |
| Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
| Object & | operator= (Object const &x) |
| Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
| Object * | SharedRefAdded () |
| Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
| int | SharedRefRemovedSafe () |
| Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
| int | RemovedSharedRefs (int count) |
| Decreases shared reference count by specified value. More... | |
| Detail::SmartPtrCounter * | WeakRefAdded () |
| Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
| void | WeakRefRemoved () |
| Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
| Detail::SmartPtrCounter * | GetCounter () |
| Gets reference counter data structure associated with the object. More... | |
| int | SharedCount () const |
| Gets current value of shared refernce counter. More... | |
| ASPOSECPP_SHARED_API void | Lock () |
| Implements C# lock() statement locking. Call directly or use LockContext sentry object. More... | |
| ASPOSECPP_SHARED_API void | Unlock () |
| Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More... | |
| virtual ASPOSECPP_SHARED_API bool | Equals (ptr obj) |
| Compares objects using C# Object.Equals semantics. More... | |
| virtual ASPOSECPP_SHARED_API ptr | MemberwiseClone () const |
| Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More... | |
| virtual ASPOSECPP_SHARED_API const TypeInfo & | GetType () const |
| Gets actual type of object. Analog of C# System.Object.GetType() call. More... | |
| virtual ASPOSECPP_SHARED_API bool | Is (const TypeInfo &targetType) const |
| Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More... | |
| virtual ASPOSECPP_SHARED_API void | SetTemplateWeakPtr (unsigned int argument) |
| Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More... | |
| template<> | |
| bool | Equals (float const &objA, float const &objB) |
| template<> | |
| bool | Equals (double const &objA, double const &objB) |
| template<> | |
| bool | ReferenceEquals (String const &str, std::nullptr_t) |
| template<> | |
| bool | ReferenceEquals (String const &str1, String const &str2) |
Static Public Member Functions | |
| static ASPOSECPP_SHARED_API UriHostNameType | CheckHostName (String name) |
| static ASPOSECPP_SHARED_API String | HexEscape (char16_t character) |
| static ASPOSECPP_SHARED_API char16_t | HexUnescape (const String &pattern, int32_t &index) |
| static ASPOSECPP_SHARED_API bool | IsHexEncoding (const String &pattern, int32_t index) |
| static ASPOSECPP_SHARED_API bool | CheckSchemeName (const String &schemeName) |
| static ASPOSECPP_SHARED_API bool | IsHexDigit (char16_t character) |
| static ASPOSECPP_SHARED_API int32_t | FromHex (char16_t digit) |
| static ASPOSECPP_SHARED_API bool | TryCreate (const String &uriString, UriKind uriKind, SharedPtr< Uri > &result) |
| static ASPOSECPP_SHARED_API bool | TryCreate (SharedPtr< Uri > baseUri, const String &relativeUri, SharedPtr< Uri > &result) |
| static ASPOSECPP_SHARED_API bool | TryCreate (const SharedPtr< Uri > &baseUri, SharedPtr< Uri > relativeUri, SharedPtr< Uri > &result) |
| static ASPOSECPP_SHARED_API int32_t | Compare (const SharedPtr< Uri > &uri1, const SharedPtr< Uri > &uri2, UriComponents partsToCompare, UriFormat compareFormat, StringComparison comparisonType) |
| static ASPOSECPP_SHARED_API bool | IsWellFormedUriString (const String &uriString, UriKind uriKind) |
| static ASPOSECPP_SHARED_API String | UnescapeDataString (const String &stringToUnescape) |
| static ASPOSECPP_SHARED_API String | EscapeUriString (const String &stringToEscape) |
| static ASPOSECPP_SHARED_API String | EscapeDataString (const String &stringToEscape) |
Static Public Member Functions inherited from System::Object | |
| static bool | ReferenceEquals (ptr const &objA, ptr const &objB) |
| Compares objects by reference. More... | |
| template<typename T > | |
| static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, T const &objB) |
| Compares objects by reference. More... | |
| template<typename T > | |
| static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, std::nullptr_t) |
| Reference-compares value type object with nullptr. More... | |
| template<typename T1 , typename T2 > | |
| static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
| Compares reference type objects in C# style. More... | |
| template<typename T1 , typename T2 > | |
| static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
| Compares value type objects in C# style. More... | |
| static const TypeInfo & | Type () |
| Impleemnts C# typeof(System.Object) construct. More... | |
Static Public Attributes | |
| static const ASPOSECPP_SHARED_API String | UriSchemeFile |
| Specifies that the Uri is a pointer to a file. More... | |
| static const ASPOSECPP_SHARED_API String | UriSchemeFtp |
| Specifies that the Uri is accessed through the File Transfer Protocol. More... | |
| static const ASPOSECPP_SHARED_API String | UriSchemeGopher |
| Specifies that the Uri is accessed through the Gopher protocol. More... | |
| static const ASPOSECPP_SHARED_API String | UriSchemeHttp |
| Specifies that the Uri is accessed through the Hypertext Transfer Protocol. More... | |
| static const ASPOSECPP_SHARED_API String | UriSchemeHttps |
| Specifies that the Uri is accessed through the Secure Hypertext Transfer Protocol. More... | |
| static const ASPOSECPP_SHARED_API String | UriSchemeMailto |
| Specifies that the Uri is an email address and is accessed through the Simple Mail Transport Protocol. More... | |
| static const ASPOSECPP_SHARED_API String | UriSchemeNews |
| Specifies that the Uri is an Internet news group and is accessed through the Network News Transport Protocol. More... | |
| static const ASPOSECPP_SHARED_API String | UriSchemeNntp |
| Specifies that the Uri is an Internet news group and is accessed through the Network News Transport Protocol. More... | |
| static const ASPOSECPP_SHARED_API String | UriSchemeNetTcp |
| Specifies that the Uri is accessed through the NetTcp scheme used by Windows Communication Foundation. More... | |
| static const ASPOSECPP_SHARED_API String | UriSchemeNetPipe |
| Specifies that the Uri is accessed through the NetPipe scheme used by Windows Communication Foundation. More... | |
| static const ASPOSECPP_SHARED_API String | SchemeDelimiter |
| Specifies the characters that separate the communication protocol scheme from the address portion of the Uri. More... | |
Protected Member Functions | |
| virtual ASPOSECPP_SHARED_API void | Parse () |
| Obsolete method. More... | |
| virtual ASPOSECPP_SHARED_API void | Canonicalize () |
| Obsolete method. More... | |
| virtual ASPOSECPP_SHARED_API void | Escape () |
| Obsolete method. More... | |
| virtual ASPOSECPP_SHARED_API String | Unescape (const String &path) |
| Obsolete method. More... | |
| virtual ASPOSECPP_SHARED_API void | CheckSecurity () |
| Obsolete method. More... | |
| virtual ASPOSECPP_SHARED_API bool | IsReservedCharacter (char16_t character) |
| Obsolete method. More... | |
| virtual ASPOSECPP_SHARED_API bool | IsBadFileSystemCharacter (char16_t character) |
| Obsolete method. More... | |
Static Protected Member Functions | |
| static ASPOSECPP_SHARED_API String | EscapeString (const String &str) |
| Obsolete method. More... | |
| static ASPOSECPP_SHARED_API bool | IsExcludedCharacter (char16_t character) |
| Obsolete method. More... | |
Friends | |
| ASPOSECPP_SHARED_API bool | operator== (const SharedPtr< Uri > &uri1, const SharedPtr< Uri > &uri2) |
| ASPOSECPP_SHARED_API bool | operator!= (const SharedPtr< Uri > &uri1, const SharedPtr< Uri > &uri2) |
Additional Inherited Members | |
Public Types inherited from System::Object | |
| typedef SmartPtr< Object > | ptr |
| Alias for smart pointer type. More... | |
| typedef System::Details::SharedMembersType | shared_members_type |
| structure to keep list of shared pointers contained in object. More... | |
Unified resource identifier. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
| ASPOSECPP_SHARED_API System::Uri::Uri | ( | const String & | uriString | ) |
Constructs a Uri object that represents the specified URI
| uriString | The string URI to be represented by the object being constructed |
| ASPOSECPP_SHARED_API System::Uri::Uri | ( | const String & | uriString, |
| bool | dontEscape | ||
| ) |
Constructs a Uri object that represents the specified URI; an argument specifies if the URI shoud be escaped
| uriString | The string URI to be represented by the object being constructed |
| dontEscape | Specifies if the URI should not be escaped |
| ASPOSECPP_SHARED_API System::Uri::Uri | ( | const SharedPtr< Uri > & | baseUri, |
| const String & | relativeUri, | ||
| bool | dontEscape | ||
| ) |
Constructs an Uri abject from the specified Uri object representing the base URI and the string representation of relative URI; an argument specifies if the URI shoud be escaped
| baseUri | The base URI |
| relativeUri | The relative URI that is added to the base URI |
| dontEscape | Specifies if the URI should not be escaped |
Constructs a Uri object that represents the specified URI; an argument specifies the URI kind
| uriString | The string URI to be represented by the object being constructed |
| uriKind | Specifies the URI kind |
| ASPOSECPP_SHARED_API System::Uri::Uri | ( | const SharedPtr< Uri > & | baseUri, |
| const String & | relativeUri | ||
| ) |
Constructs an Uri abject from the specified base and relative URIs.
| baseUri | The base URI |
| relativeUri | The relative URI that is added to the base URI |
| ASPOSECPP_SHARED_API System::Uri::Uri | ( | const SharedPtr< Uri > & | baseUri, |
| SharedPtr< Uri > | relativeUri | ||
| ) |
Constructs an Uri abject from the specified base and relative URIs.
| baseUri | The base URI |
| relativeUri | The relative URI that is added to the base URI |
|
protectedvirtual |
Obsolete method.
|
static |
Determines the type of the specified host name.
| name | The host name to test |
|
static |
Determines if the specified scheme is valid.
| schemeName | The name of the scheme to test |
|
protectedvirtual |
Obsolete method.
|
static |
Compares the specified Uri objects using the specified comparison rules.
| uri1 | The first comparand |
| uri2 | The second comparand |
| partsToCompare | Specifies the parts of uri1 and uri2 to compare |
| compareFormat | Specifies the character escaping used when components of URIs are compared |
| comparisonType | One of the StringComparison values |
uri1 is less than uri2; 0 if uri1 and uri2 are equal; a positive value if uri1 is greater than uri2
|
overridevirtual |
Determines if the URIs represented by the current and specified objects are equal.
| comparand | The Uri object to compare the current object with |
|
protectedvirtual |
Obsolete method.
|
static |
Converts a string to its escaped representation.
| stringToEscape | The string to escape |
stringToEscape Obsolete method.
|
static |
Converts a URI string to its escaped representation
| stringToEscape | The string to escape |
stringToEscape
|
static |
Gets the decimal value of a hexadecimal digit
| digit | The hexadecimal digit to convert |
| ASPOSECPP_SHARED_API String System::Uri::get_AbsolutePath | ( | ) | const |
Returns the absolute path of the URI.
| ASPOSECPP_SHARED_API String System::Uri::get_AbsoluteUri | ( | ) | const |
Returns the absolute URI.
| ASPOSECPP_SHARED_API String System::Uri::get_Authority | ( | ) | const |
Returns the host name and the port number for a server.
| ASPOSECPP_SHARED_API String System::Uri::get_DnsSafeHost | ( | ) | const |
Returns an unescaped host name.
| ASPOSECPP_SHARED_API String System::Uri::get_Fragment | ( | ) | const |
Returns the escaped URI fragment.
| ASPOSECPP_SHARED_API String System::Uri::get_Host | ( | ) | const |
Returns the host name.
| ASPOSECPP_SHARED_API UriHostNameType System::Uri::get_HostNameType | ( | ) | const |
Returns the host name type.
| ASPOSECPP_SHARED_API String System::Uri::get_IdnHost | ( | ) | const |
Returns an International Domain Name of the host.
| ASPOSECPP_SHARED_API bool System::Uri::get_IsAbsoluteUri | ( | ) | const |
Determines if the URI represented by the current object is absolute.
| ASPOSECPP_SHARED_API bool System::Uri::get_IsDefaultPort | ( | ) | const |
Determines if the URI represented by the current object has defualt port for the URI's scheme.
| ASPOSECPP_SHARED_API bool System::Uri::get_IsFile | ( | ) | const |
Determines if the URI represented by the current object is a file.
| ASPOSECPP_SHARED_API bool System::Uri::get_IsLoopback | ( | ) | const |
Determines if the URI represented by the current object references a local host.
| ASPOSECPP_SHARED_API bool System::Uri::get_IsUnc | ( | ) | const |
Determines if the URI represented by the current object is a UNC path.
| ASPOSECPP_SHARED_API String System::Uri::get_LocalPath | ( | ) | const |
Returns the operating system representation of the file name referenced by the URI represented by the current object.
| ASPOSECPP_SHARED_API String System::Uri::get_OriginalString | ( | ) | const |
Returns the URI string that was passed to the constructor when current object was constructed.
| ASPOSECPP_SHARED_API String System::Uri::get_PathAndQuery | ( | ) | const |
Returns the absolute path and query components of the URI represented by the current object separated by a question mark (?).
| ASPOSECPP_SHARED_API int32_t System::Uri::get_Port | ( | ) | const |
Returns the port number of the URI represented by the current object.
| ASPOSECPP_SHARED_API String System::Uri::get_Query | ( | ) | const |
Returns the query information included in the URI represented by the current object.
| ASPOSECPP_SHARED_API String System::Uri::get_Scheme | ( | ) | const |
Returns the scheme of the URI represented by the current object.
Returns an array of strings containing the path segments of the URI represented by the current object.
| ASPOSECPP_SHARED_API bool System::Uri::get_UserEscaped | ( | ) | const |
Determines if the URI string passed to the constructor of the current object was fully escaped.
| ASPOSECPP_SHARED_API String System::Uri::get_UserInfo | ( | ) | const |
Returns a uer name, password and other user information associated with the URI represented by the current object.
| ASPOSECPP_SHARED_API String System::Uri::GetComponents | ( | UriComponents | components, |
| UriFormat | format | ||
| ) | const |
Returns the specified components of the URI represented by the current object using the specified escaping.
| components | A bitwise combination of the UriComponents values that specifies which parts of URI to return |
| format | Specifies how the special characters are escaped |
|
overridevirtual |
Gets the hash code for the URI
Reimplemented from System::Object.
| ASPOSECPP_SHARED_API String System::Uri::GetLeftPart | ( | UriPartial | part | ) |
Returns the specified portion of the URI represented by the current object.
| part | Specifies which portion of the URI to return |
|
static |
Returns a hexadecimal equivalent of the specified character.
| character | The character to convert |
|
static |
Converts the specified hexadecimal representation of a character to a character.
| pattern | A string containing the hexadecimal representation of a character |
| index | The position in pattern where the hexadecimal representation of a character begins |
index. If the character at index is not hexadecimal encoded, the character at index is returned. The value of index is incremented to point to the character following the one returned.
|
protectedvirtual |
Obsolete method.
|
staticprotected |
Obsolete method.
|
static |
Determines if the specified character represents a valid hexadecimal digit.
| character | The character to check |
|
static |
Determines if a character in the specified string at the specified position is hexadecimal encoded.
| pattern | The string to check |
| index | Zero-based position of the character to test |
|
protectedvirtual |
Obsolete method.
| ASPOSECPP_SHARED_API bool System::Uri::IsWellFormedOriginalString | ( | ) | const |
Indicates whether the string used to construct this Uri was well-formed and is not required to be further escaped.
|
static |
Determines if the specified string is a well-formed URI.
| uriString | The URI to test |
| uriKind | The type of the specified URI |
Determines the difference between two Uri instances
| toUri | The URI to compare to the current URI |
toUri are the same, then this method returns a String that represents a relative Uri, when appended to the current URI instance, yields toUri. If the hostname or scheme is different, then this method returns a String that represents the uri parameter. Determines the difference between URIs represented by the current and the specified Uri objects.
| uri | The comparand |
toUri are the same, then this method returns a relative Uri that, when appended to the current URI instance, yields toUri. If the hostname or scheme is different, then this method returns a Uri object that represents the uri parameter.
|
protectedvirtual |
Obsolete method.
|
overridevirtual |
Returns the string representation of the URI represented by the current object.
Reimplemented from System::Object.
|
static |
Constructs a Uri object that represents the specified URI; an argument specifies the URI kind
| uriString | The string URI to be represented by the object being constructed |
| uriKind | Specifies the URI kind |
| result | The output argument that, if the construction succeeds, points to the newly constructed Uri object on method return |
|
static |
Constructs an Uri abject from the specified Uri object representing the base URI and the string representation of relative URI
| baseUri | The base URI |
| relativeUri | The relative URI that is added to the base URI |
| result | The output argument that, if the construction succeeds, points to the newly constructed Uri object on method return |
|
static |
Constructs an Uri abject from the specified base and relative URIs.
| baseUri | The base URI |
| relativeUri | The relative URI that is added to the base URI |
| result | The output argument that, if the construction succeeds, points to the newly constructed Uri object on method return |
Obsolete method.
|
static |
Unescapes the specified escaped string.
| stringToUnescape | The string to unescape |
stringToUnescape
|
static |
Specifies the characters that separate the communication protocol scheme from the address portion of the Uri.
|
static |
Specifies that the Uri is a pointer to a file.
|
static |
Specifies that the Uri is accessed through the File Transfer Protocol.
|
static |
Specifies that the Uri is accessed through the Gopher protocol.
|
static |
Specifies that the Uri is accessed through the Hypertext Transfer Protocol.
|
static |
Specifies that the Uri is accessed through the Secure Hypertext Transfer Protocol.
|
static |
Specifies that the Uri is an email address and is accessed through the Simple Mail Transport Protocol.
|
static |
|
static |
|
static |
Specifies that the Uri is an Internet news group and is accessed through the Network News Transport Protocol.