Interface IUrlUtility
- Namespace
- ComponentSpace.Saml2.Utility
- Assembly
- ComponentSpace.Saml2.dll
Provides URL utility methods.
public interface IUrlUtility
Methods
AppendPath(string, string)
Appends a path to the URL.
string AppendPath(string url, string path)
Parameters
Returns
- string
The combined URL and path.
IsAbsoluteUrl(string)
Indicates whether the URL is absolute.
bool IsAbsoluteUrl(string url)
Parameters
urlstringThe URL.
Returns
- bool
trueif the URL is absolute; otherwisefalse.
LogRequest()
Logs the HTTP request.
void LogRequest()
ToAbsoluteUrl(string)
Converts a relative URL to an absolute URL.
string ToAbsoluteUrl(string url)
Parameters
urlstringThe relative URL.
Returns
- string
The absolute URL.
ToHttpsUrl(string)
Converts an HTTPS URL to an HTTPS URL.
string ToHttpsUrl(string url)
Parameters
urlstringThe HTTP URL.
Returns
- string
The HTTPS URL.