mxUrlConverter

Converts relative and absolute URLs to absolute URLs with protocol and domain.

Summary
mxUrlConverterConverts relative and absolute URLs to absolute URLs with protocol and domain.
Variables
enabledSpecifies if the converter is enabled.
baseUrlSpecifies the base URL to be used as a prefix for relative URLs.
baseDomainSpecifies the base domain to be used as a prefix for absolute URLs.
Functions
updateBaseUrlPrivate helper function to update the base URL.
isEnabledReturns enabled.
setEnabledSets enabled.
getBaseUrlReturns baseUrl.
setBaseUrlSets baseUrl.
getBaseDomainReturns baseDomain.
setBaseDomainSets baseDomain.
isRelativeUrlReturns true if the given URL is relative.
convertConverts the given URL to an absolute URL with protol and domain.

Variables

enabled

mxUrlConverter.prototype.enabled

Specifies if the converter is enabled.  Default is true.

baseUrl

mxUrlConverter.prototype.baseUrl

Specifies the base URL to be used as a prefix for relative URLs.

baseDomain

mxUrlConverter.prototype.baseDomain

Specifies the base domain to be used as a prefix for absolute URLs.

Functions

updateBaseUrl

mxUrlConverter.prototype.updateBaseUrl = function()

Private helper function to update the base URL.

isEnabled

mxUrlConverter.prototype.isEnabled = function()

Returns enabled.

setEnabled

mxUrlConverter.prototype.setEnabled = function(value)

Sets enabled.

getBaseUrl

mxUrlConverter.prototype.getBaseUrl = function()

Returns baseUrl.

setBaseUrl

mxUrlConverter.prototype.setBaseUrl = function(value)

Sets baseUrl.

getBaseDomain

mxUrlConverter.prototype.getBaseDomain = function()

Returns baseDomain.

setBaseDomain

mxUrlConverter.prototype.setBaseDomain = function(value)

Sets baseDomain.

isRelativeUrl

mxUrlConverter.prototype.isRelativeUrl = function(url)

Returns true if the given URL is relative.

convert

mxUrlConverter.prototype.convert = function(url)

Converts the given URL to an absolute URL with protol and domain.  Relative URLs are first converted to absolute URLs.

mxUrlConverter.prototype.enabled
Specifies if the converter is enabled.
mxUrlConverter.prototype.baseUrl
Specifies the base URL to be used as a prefix for relative URLs.
mxUrlConverter.prototype.baseDomain
Specifies the base domain to be used as a prefix for absolute URLs.
mxUrlConverter.prototype.updateBaseUrl = function()
Private helper function to update the base URL.
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.
mxUrlConverter.prototype.isRelativeUrl = function(url)
Returns true if the given URL is relative.
mxUrlConverter.prototype.convert = function(url)
Converts the given URL to an absolute URL with protol and domain.
Close