WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.
nsIStandardURL
| IID: | babd6cca-ebe7-4329-967c-d6b9e33caa81 |
| Inherits From: | nsIMutable |
| Status: | UNDER_REVIEW |
nsIStandardURL defines the interface to an URL with the standard file path format common to protocols like http, ftp, and file. It supports initialization from a relative path and provides some customization on how URLs are normalized.
This interface is implemented by the following components:
Constants
Methods
void init ( PRUint32 urlType , PRInt32 defaultPort , AUTF8String spec , char* originCharset , nsIURI baseURI )
void init ( PRUint32 urlType , PRInt32 defaultPort , AUTF8String spec , char* originCharset , nsIURI baseURI )
Initialize a standard URL.
- Arguments:
- urlType: - one of the URLTYPE_ flags listed above.
- defaultPort: - if the port parsed from the URL string matches this port, then the port will be removed from the canonical form of the URL.
- spec: - URL string.
- originCharset: - 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 baseURI implements this interface, the origin charset of baseURI will be assumed, otherwise defaulting to UTF-8 (i.e., no charset transformation from spec).
- baseURI: - if null, spec must specify an absolute URI. otherwise, spec will be resolved relative to baseURI.
Reference documentation is generated from Mozilla's source.
