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 | |
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. |
isEnabled: function()
Returns enabled.
setEnabled: function( value )
Sets enabled.
getBaseUrl: function()
Returns baseUrl.
setBaseUrl: function( value )
Sets baseUrl.
getBaseDomain: function()
Returns baseDomain.
setBaseDomain: function( value )
Sets baseDomain.
Specifies if the converter is enabled.
var enabled
Specifies the base URL to be used as a prefix for relative URLs.
var baseUrl
Specifies the base domain to be used as a prefix for absolute URLs.
var baseDomain
Returns enabled.
isEnabled: function()
Sets enabled.
setEnabled: function( value )
Returns baseUrl.
getBaseUrl: function()
Sets baseUrl.
setBaseUrl: function( value )
Returns baseDomain.
getBaseDomain: function()
Sets baseDomain.
setBaseDomain: function( value )
Returns true if the given URL is relative.
isRelativeUrl: function( url )
Converts the given URL to an absolute URL with protol and domain.
convert: function( url )