Converts relative and absolute URLs to absolute URLs with protocol and domain.
| mxUrlConverter | Converts relative and absolute URLs to absolute URLs with protocol and domain. |
| Variables | |
| enabled | Specifies if the converter is enabled. |
| baseUrl | Specifies the base URL to be used as a prefix for relative URLs. |
| baseDomain | Specifies the base domain to be used as a prefix for absolute URLs. |
| Functions | |
| updateBaseUrl | Private helper function to update the base URL. |
| isEnabled | Returns enabled. |
| setEnabled | Sets enabled. |
| getBaseUrl | Returns baseUrl. |
| setBaseUrl | Sets baseUrl. |
| getBaseDomain | Returns baseDomain. |
| setBaseDomain | Sets baseDomain. |
| isRelativeUrl | Returns true if the given URL is relative. |
| convert | Converts the given URL to an absolute URL with protol and domain. |
mxUrlConverter.prototype.isEnabled = function()
Returns enabled.
mxUrlConverter.prototype.setEnabled = function( value )
Sets enabled.
mxUrlConverter.prototype.getBaseUrl = function()
Returns baseUrl.
mxUrlConverter.prototype.setBaseUrl = function( value )
Sets baseUrl.
mxUrlConverter.prototype.getBaseDomain = function()
Returns baseDomain.
mxUrlConverter.prototype.setBaseDomain = function( value )
Sets baseDomain.
Specifies if the converter is enabled.
mxUrlConverter.prototype.enabled
Specifies the base URL to be used as a prefix for relative URLs.
mxUrlConverter.prototype.baseUrl
Specifies the base domain to be used as a prefix for absolute URLs.
mxUrlConverter.prototype.baseDomain
Private helper function to update the base URL.
mxUrlConverter.prototype.updateBaseUrl = function()
Returns enabled.
mxUrlConverter.prototype.isEnabled = function()
Sets enabled.
mxUrlConverter.prototype.setEnabled = function( value )
Returns baseUrl.
mxUrlConverter.prototype.getBaseUrl = function()
Sets baseUrl.
mxUrlConverter.prototype.setBaseUrl = function( value )
Returns baseDomain.
mxUrlConverter.prototype.getBaseDomain = function()
Sets baseDomain.
mxUrlConverter.prototype.setBaseDomain = function( value )
Returns true if the given URL is relative.
mxUrlConverter.prototype.isRelativeUrl = function( url )
Converts the given URL to an absolute URL with protol and domain.
mxUrlConverter.prototype.convert = function( url )