net.rim.plazmic.mediaengine.io
Class ConnectionInfo

java.lang.Object
  extended by net.rim.plazmic.mediaengine.io.ConnectionInfo

Deprecated. Use SVGImage instead.

public class ConnectionInfo
extends Object

Contains details about the connection.

This class is used by both Connector and MediaManager as an input/output parameter.

Since:
BlackBerry API 3.7.0

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

ConnectionInfo

public ConnectionInfo()
Deprecated. 
The default constructor.

MediaManager uses this to instantiate a ConnectionInfo object.

Since:
BlackBerry API 3.7.0


Method Detail

getContentType

public String getContentType()
Deprecated. 
Returns the content type of the media.

MediaManager uses this method to return the media type.

Returns:
A string representing the media content type.
Since:
BlackBerry API 3.7.0

setContentType

public void setContentType(String type)
Deprecated. 
Sets the content type of the media being accessed by the connection.

The Connector must call this method in order to flag the MediaManager with the media type that is being downloaded.

Parameters:
type - A string representing the content type.
Since:
BlackBerry API 3.7.0

getConnection

public Object getConnection()
Deprecated. 
Returns the connection representation as an object.

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).

Returns:
A platform-specific representation of the connection.
See Also:
ConnectionInfo.setConnection(java.lang.Object)
Since:
BlackBerry API 3.7.0

setConnection

public void setConnection(Object connection)
Deprecated. 
Sets the Connection object related to this ConnectionInfo object.

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).

Parameters:
connection - The platform-specific representation of the connection.
Since:
BlackBerry API 3.7.0

getLength

public long getLength()
Deprecated. 
Returns the length of the media in bytes.

The MediaManager uses this method for download progress tracking purposes.

Returns:
The length of the media in bytes.
Since:
BlackBerry API 3.7.0

setLength

public void setLength(long length)
Deprecated. 
Sets the length of the data from this connection in bytes.

The Connector uses this method to return to the MediaManager the length of the media in bytes.

Parameters:
length - The length of the media in bytes.
Since:
BlackBerry API 3.7.0

setSource

public void setSource(String url)
Deprecated. 
Sets the source url of the media model file The MediaManager uses this info to locate the document base

Parameters:
url - The source url of the media model file
Since:
BlackBerry API 4.0.0

getSource

public 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

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.