Class UrlRewriterUtils
Inheritance
System.Object
UrlRewriterUtils
Namespace: DotNetNuke.Entities.Urls
Assembly: DotNetNuke.dll
Syntax
public static class UrlRewriterUtils : object
Methods
| Improve this Doc View SourceCleanExtension(String, FriendlyUrlSettings, String)
Clean Page name to remove page extension.
Declaration
public static string CleanExtension(string value, FriendlyUrlSettings settings, string langParms)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | page name. |
FriendlyUrlSettings | settings | friendly url settings. |
System.String | langParms | language. |
Returns
Type | Description |
---|---|
System.String |
|
ExtendOptionsForCustomURLs(FriendlyUrlOptions)
Return an extended FriendlyUrlOptions object for Custom URLs checkings.
Declaration
public static FriendlyUrlOptions ExtendOptionsForCustomURLs(FriendlyUrlOptions options)
Parameters
Type | Name | Description |
---|---|---|
FriendlyUrlOptions | options | The original options. |
Returns
Type | Description |
---|---|
FriendlyUrlOptions | The extended options. |
GetOptionsFromSettings(FriendlyUrlSettings)
Return a FriendlyUrlOptions object from the provider settings.
Declaration
public static FriendlyUrlOptions GetOptionsFromSettings(FriendlyUrlSettings settings)
Parameters
Type | Name | Description |
---|---|---|
FriendlyUrlSettings | settings | The settings. |
Returns
Type | Description |
---|---|
FriendlyUrlOptions | A new FriendlyUrlOptions instance. |
Log404(HttpRequest, FriendlyUrlSettings, UrlAction)
Logs the 404 error to a table for later checking.
Declaration
public static void Log404(HttpRequest request, FriendlyUrlSettings settings, UrlAction result)
Parameters
Type | Name | Description |
---|---|---|
HttpRequest | request | The request. |
FriendlyUrlSettings | settings | The settings. |
UrlAction | result | The result. |
LogExceptionInRequest(Exception, String, UrlAction)
logs an exception once per cache-lifetime.
Declaration
public static void LogExceptionInRequest(Exception ex, string status, UrlAction result)
Parameters
Type | Name | Description |
---|---|---|
Exception | ex | The exception. |
System.String | status | The HTTP status. |
UrlAction | result | The result. |