|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.device.api.browser.field.RenderingSession
Class to manage rendering sessions.
An application wanting to use a rendering session's services must invoke
getNewInstance() in order to retrieve a rendering session
handle. Then, it can fetch browser contents to render web content by invoking
one of the getBrowserContent(javax.microedition.io.HttpConnection, net.rim.device.api.browser.field.RenderingApplication, int) methods.
| Field Summary | ||
|
protected RenderingOptions |
_renderingOptions
Rendering options for this session. |
|
static long |
APP_REGISTRY_KEY
Application registry key. |
| Constructor Summary | ||
|
protected |
RenderingSession()
Creates new RenderingSession instance. |
| Method Summary | ||
|
abstract String |
getAcceptCharsetValues()
Retrieves supported character set values. |
|
abstract String |
getAcceptTypes()
Retrieves accept string for this session. |
|
abstract BrowserContent |
getBrowserContent(HttpConnection connection,
RenderingApplication renderingApplication,
Event event)
Retrieves browser content for rendering. |
|
abstract BrowserContent |
getBrowserContent(HttpConnection connection,
RenderingApplication renderingApplication,
int flags)
Retrieves browser content for rendering. |
|
BrowserContent |
getBrowserContent(InputConnection connection,
String url,
RenderingApplication renderingApplication,
Event event)
Retrieves browser content for rendering. |
|
BrowserContent |
getBrowserContent(InputConnection connection,
String url,
RenderingApplication renderingApplication,
int flags)
Retrieves browser content for rendering. |
|
abstract Object |
getContext()
Retrieves context object for this session. |
|
static RenderingSession |
getNewInstance()
Retrieves a rendering session handle. |
|
abstract RenderingOptions |
getRenderingOptions()
Retrieves this session's rendering options. |
|
abstract Vector |
getSupportedMimeType()
Retrieves list of supported mime types. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final long APP_REGISTRY_KEY
protected RenderingOptions _renderingOptions
| Constructor Detail |
protected RenderingSession()
| Method Detail |
public static RenderingSession getNewInstance()
public abstract String getAcceptTypes()
public abstract Vector getSupportedMimeType()
public abstract RenderingOptions getRenderingOptions()
public abstract String getAcceptCharsetValues()
public abstract Object getContext()
public abstract BrowserContent getBrowserContent(HttpConnection connection, RenderingApplication renderingApplication, int flags) throws RenderingException
connection - Connection with the input stream containing the content
to be rendered.renderingApplication - Rendering application that can listen for
events from browser content; may be null.flags - Flags indicating extra information about rendering.public abstract BrowserContent getBrowserContent(HttpConnection connection, RenderingApplication renderingApplication, Event event) throws RenderingException
connection - Connection with the input stream containing the content
to be rendered.renderingApplication - Rendering application that can listen for
events from browser content; may be null.event - Event from browser content that caused new Browser content to be
retrieved.public BrowserContent getBrowserContent(InputConnection connection, String url, RenderingApplication renderingApplication, int flags) throws RenderingException
connection - Connection with the input stream containing the content
to be rendered.url - The base URL used to resolve relative references, not used for HTTP connections.renderingApplication - Rendering application that can listen for
events from browser content; may be null.flags - Flags indicating extra information about rendering.public BrowserContent getBrowserContent(InputConnection connection, String url, RenderingApplication renderingApplication, Event event) throws RenderingException
connection - Connection with the input stream containing the content
to be rendered.url - The base URL used to resolve relative references, not used for HTTP connections.renderingApplication - Rendering application that can listen for
events from browser content; may be null.event - Event from browser content that caused new Browser content to be
retrieved.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2006 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.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.