|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.browser.field.RenderingSession
public abstract class RenderingSession
Class to manage rendering sessions.
An application wanting to use a rendering session's services must invoke
RenderingSession.getNewInstance()
in order to retrieve a rendering session
handle. Then, it can fetch browser contents to render web content by invoking
one of the RenderingSession.getBrowserContent(javax.microedition.io.HttpConnection, net.rim.device.api.browser.field.RenderingApplication, int)
methods.
Field Summary | ||
---|---|---|
|
static long |
APP_REGISTRY_KEY
Application registry key. |
|
protected RenderingOptions |
_renderingOptions
Rendering options for this session. |
Method Summary | ||
---|---|---|
|
abstract String |
getAcceptCharsetValues()
Retrieves supported character set values. |
|
abstract String |
getAcceptTypes()
Retrieves accept string for this session. |
|
BrowserContent |
getBrowserContent(HttpConnection connection,
InputStream in,
RenderingApplication renderingApplication,
int flags)
Retrieves browser content for rendering. |
|
abstract BrowserContent |
getBrowserContent(HttpConnection connection,
RenderingApplication renderingApplication,
int flags)
Retrieves browser content for rendering. |
|
abstract BrowserContent |
getBrowserContent(HttpConnection connection,
RenderingApplication renderingApplication,
Event event)
Retrieves browser content for rendering. |
|
BrowserContent |
getBrowserContent(InputConnection connection,
InputStream in,
String url,
RenderingApplication renderingApplication,
int flags)
Retrieves browser content for rendering. |
|
BrowserContent |
getBrowserContent(InputConnection connection,
String url,
RenderingApplication renderingApplication,
int flags)
Retrieves browser content for rendering. |
|
BrowserContent |
getBrowserContent(InputConnection connection,
String url,
RenderingApplication renderingApplication,
Event event)
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
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.
RenderingException
public BrowserContent getBrowserContent(HttpConnection connection, InputStream in, RenderingApplication renderingApplication, int flags) throws RenderingException
connection
- Connection containing the content to be rendered.in
- Input stream with the data to be rendered.renderingApplication
- Rendering application that can listen for
events from browser content; may be null.flags
- Flags indicating extra information about rendering.
RenderingException
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.
RenderingException
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.
RenderingException
public BrowserContent getBrowserContent(InputConnection connection, InputStream in, String url, RenderingApplication renderingApplication, int flags) throws RenderingException
connection
- Connection containing the content to be rendered.in
- Input stream with the data 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.
RenderingException
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.
RenderingException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.