Interface IUrlUtility
Provides URL utility methods.
Namespace: ComponentSpace.Saml2.Utility
Assembly: ComponentSpace.Saml2.dll
Syntax
public interface IUrlUtility
Methods
AppendPath(String, String)
Appends a path to the URL.
Declaration
string AppendPath(string url, string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | The URL. |
System.String | path | The path. |
Returns
Type | Description |
---|---|
System.String | The combined URL and path. |
IsAbsoluteUrl(String)
Indicates whether the URL is absolute.
Declaration
bool IsAbsoluteUrl(string url)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | The URL. |
Returns
Type | Description |
---|---|
System.Boolean |
|
LogRequest()
Logs the HTTP request.
Declaration
void LogRequest()
ToAbsoluteUrl(String)
Converts a relative URL to an absolute URL.
Declaration
string ToAbsoluteUrl(string url)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | The relative URL. |
Returns
Type | Description |
---|---|
System.String | The absolute URL. |
ToHttpsUrl(String)
Converts an HTTPS URL to an HTTPS URL.
Declaration
string ToHttpsUrl(string url)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | The HTTP URL. |
Returns
Type | Description |
---|---|
System.String | The HTTPS URL. |