|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.plazmic.mediaengine.io.ConnectionInfo
SVGImage instead.
public class ConnectionInfo
Contains details about the connection.
This class is used by both Connector and
MediaManager as an input/output
parameter.
| Constructor Summary | ||
|---|---|---|
ConnectionInfo()
Deprecated. The default constructor. |
||
| Method Summary | ||
|---|---|---|
Object |
getConnection()
Deprecated. Returns the connection representation as an object. |
|
String |
getContentType()
Deprecated. Returns the content type of the media. |
|
long |
getLength()
Deprecated. Returns the length of the media in bytes. |
|
String |
getSource()
Deprecated. Returns the source url of the media model file The MediaManager uses this info to get the document base and handle redirections and relative links |
|
void |
setConnection(Object connection)
Deprecated. Sets the Connection object related to this ConnectionInfo object. |
|
void |
setContentType(String type)
Deprecated. Sets the content type of the media being accessed by the connection. |
|
void |
setLength(long length)
Deprecated. Sets the length of the data from this connection in bytes. |
|
void |
setSource(String url)
Deprecated. Sets the source url of the media model file The MediaManager uses this info to locate the document base |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionInfo()
MediaManager uses this to
instantiate a ConnectionInfo object.
| Method Detail |
|---|
public String getContentType()
MediaManager uses this method
to return the media type.
public void setContentType(String type)
The Connector must call this method in order to flag the
MediaManager with the media
type that is being downloaded.
type - A string representing the content type.public Object getConnection()
The Connector can obtain this object in
Connector.releaseConnection(ConnectionInfo info)
to release the connection if necessary.
The Connector stores the
connection object in ConnectionInfo using
ConnectionInfo.setConnection(java.lang.Object).
ConnectionInfo.setConnection(java.lang.Object)public void setConnection(Object connection)
The Connector might use this method to specify the connection
object that will be used later to release the connection
in Connector.releaseConnection(ConnectionInfo info).
connection - The platform-specific representation of the connection.public long getLength()
The MediaManager uses this method for
download progress tracking purposes.
public void setLength(long length)
The Connector uses this method to return to the
MediaManager the length of the media
in bytes.
length - The length of the media in bytes.public void setSource(String url)
url - The source url of the media model filepublic String getSource()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal