net.rim.device.api.browser.plugin
Class BrowserContentProvider

java.lang.Object
  extended by net.rim.device.api.browser.plugin.BrowserContentProvider

public abstract class BrowserContentProvider
extends Object

Defines functionality required of a provider of specialized browser contents.

Third parties wishing to provide rendering of specialized mime content can implement this abstract class.

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 4.0.0

Constructor Summary
Category: Signed protected BrowserContentProvider()
          
 
Method Summary
Category: Signed abstract  String[] getAccept(RenderingOptions context)
          Retrieves list of mime types this provider can accept given a set of rendering options.
Category: Signed abstract  BrowserContent getBrowserContent(BrowserContentProviderContext context)
          Retrieves a browser content capable of rendering the mime content this provider can handle.
Category: Signed abstract  String[] getSupportedMimeTypes()
          Retrieves all the mime content types supported by this provider.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Constructor Detail

BrowserContentProvider

protected BrowserContentProvider()

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 4.0.0


Method Detail

getAccept

public abstract String[] getAccept(RenderingOptions context)
Retrieves list of mime types this provider can accept given a set of rendering options.

Parameters:
context - Rendering options in place this provider should consider.
Returns:
Array of mime types this provider will accept, given the provided rendering options.
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 4.0.0

getSupportedMimeTypes

public abstract String[] getSupportedMimeTypes()
Retrieves all the mime content types supported by this provider.

Returns:
Mime types this converter supports.
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 4.0.0

getBrowserContent

public abstract BrowserContent getBrowserContent(BrowserContentProviderContext context)
                                          throws RenderingException
Retrieves a browser content capable of rendering the mime content this provider can handle.

Parameters:
context - Provider context object provided by rendering session.
Returns:
Browser content to render specialized content.
Throws:
RenderingException
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 4.0.0





Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.