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
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

var enabled

Specifies if the converter is enabled.  Default is true.

baseUrl

var baseUrl

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

baseDomain

var baseDomain

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

Functions

isEnabled

isEnabled: function()

Returns enabled.

setEnabled

setEnabled: function(value)

Sets enabled.

getBaseUrl

getBaseUrl: function()

Returns baseUrl.

setBaseUrl

setBaseUrl: function(value)

Sets baseUrl.

getBaseDomain

getBaseDomain: function()

Returns baseDomain.

setBaseDomain

setBaseDomain: function(value)

Sets baseDomain.

isRelativeUrl

isRelativeUrl: function(url)

Returns true if the given URL is relative.

convert

convert: function(url)

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

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