|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.plazmic.mediaengine.io.ConnectionInfo
Contains details about the connection.
This class is used by both Connector and
MediaManager as an input/output
parameter.
| Constructor Summary | ||
ConnectionInfo()
The default constructor. |
||
| Method Summary | ||
Object |
getConnection()
Returns the connection representation as an object. |
|
String |
getContentType()
Returns the content type of the media. |
|
long |
getLength()
Returns the length of the media in bytes. |
|
String |
getSource()
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)
Sets the Connection object related to this ConnectionInfo object. |
|
void |
setContentType(String type)
Sets the content type of the media being accessed by the connection. |
|
void |
setLength(long length)
Sets the length of the data from this connection in bytes. |
|
void |
setSource(String url)
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 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
setConnection(java.lang.Object).
setConnection(java.lang.Object)public String getContentType()
MediaManager uses this method
to return the media type.
public long getLength()
The MediaManager uses this method for
download progress tracking purposes.
public String getSource()
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 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 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 file
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2007 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.