Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Initialize a standard URL.
one of the URLTYPE_ flags listed above.
if the port parsed from the URL string matches this port, then the port will be removed from the canonical form of the URL.
URL string.
the charset from which this URI string originated. this corresponds to the charset that should be used when communicating this URI to an origin server, for example. if null, then provide aBaseURI implements this interface, the origin charset of aBaseURI will be assumed, otherwise defaulting to UTF-8 (i.e., no charset transformation from aSpec).
if null, aSpec must specify an absolute URI. otherwise, aSpec will be resolved relative to aBaseURI.
Set the default port.
Note: If this object is already using its default port (i.e. if it has mPort == -1), then it will now implicitly be using the new default port.
if the URI has (or is later given) a port that matches this default, then we won't include a port number in the canonical form of the URL.
Generated using TypeDoc
Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.
Returns
The resulting reference count.