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.

nsIWebContentConverterService

IID:632b16a8-5c6b-4dc5-a8db-01771af7a79d
Inherits From:nsISupports

This interface is intended to be used as a service.

This interface is implemented by the following components:


Methods

nsIWebContentHandlerInfo getAutoHandler ( AString contentType ) void getContentHandlers ( AString contentType , out PRUint32 count , out nsIWebContentHandlerInfo handlers ) nsIWebContentHandlerInfo getWebContentHandlerByURI ( AString contentType , AString uri ) void loadPreferredHandler ( nsIRequest request ) void registerContentHandler ( AString contentType , AString uri , AString title ) void registerProtocolHandler ( AString scheme , AString uri , AString title ) void removeContentHandler ( AString contentType , AString uri ) void removeProtocolHandler ( AString protocol , AString uri ) void resetHandlersForType ( AString contentType ) void setAutoHandler ( AString contentType , nsIWebContentHandlerInfo handler )

nsIWebContentHandlerInfo getAutoHandler ( AString contentType )

Gets the auto handler specified for a particular content type

Arguments:
contentType: The content type to look up an auto handler for.

void getContentHandlers ( AString contentType , out PRUint32 count , out nsIWebContentHandlerInfo handlers )

Gets the list of content handlers for a particular type.

Arguments:
contentType: The content type to get handlers for
count
handlers

nsIWebContentHandlerInfo getWebContentHandlerByURI ( AString contentType , AString uri )

Gets a web handler for the specified service URI

Arguments:
contentType: The content type of the service being located
uri: The service URI of the handler to locate.

void loadPreferredHandler ( nsIRequest request )

Loads the preferred handler when content of a registered type is about to be loaded.

Arguments:
request: The nsIRequest for the load of the content

void registerContentHandler ( AString contentType , AString uri , AString title )

Registers a content handler for a web service

Arguments:
contentType: The content type to register a service handler for
uri: The uri of the service handler to register
title: The human readable title of the service

void registerProtocolHandler ( AString scheme , AString uri , AString title )

Registers a protocol handler for a web service

Arguments:
scheme
uri: The uri of the service handler to register
title: The human readable title of the service

void removeContentHandler ( AString contentType , AString uri )

Removes a registered content handler

Arguments:
contentType: The content type to remove a service handler for
uri: The uri of the service handler to remove

void removeProtocolHandler ( AString protocol , AString uri )

Removes a registered protocol handler

Arguments:
protocol: The protocol scheme to remove a service handler for
uri: The uri of the service handler to remove

void resetHandlersForType ( AString contentType )

Resets the list of available content handlers to the default set from the distribution.

Arguments:
contentType: The content type to reset handlers for

void setAutoHandler ( AString contentType , nsIWebContentHandlerInfo handler )

Specifies the handler to be used to automatically handle all links of a certain content type from now on.

Arguments:
contentType: The content type to automatically load with the specified handler
handler: A web service handler. If this is null, no automatic action is performed and the user must choose.

Reference documentation is generated from Mozilla's source.