org.teleal.cling.support.connectionmanager.dto
Class ConnectionInfo
java.lang.Object
org.teleal.cling.support.connectionmanager.dto.ConnectionInfo
public class ConnectionInfo
- extends java.lang.Object
Immutable type encapsulating the state of a single connection.
- Author:
- Alessio Gaeta, Christian Bauer
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
connectionID
protected final int connectionID
rcsID
protected final int rcsID
avTransportID
protected final int avTransportID
protocolInfo
protected final ProtocolInfo protocolInfo
peerConnectionManager
protected final org.teleal.cling.model.ServiceReference peerConnectionManager
peerConnectionID
protected final int peerConnectionID
direction
protected final ConnectionInfo.Direction direction
connectionStatus
protected ConnectionInfo.Status connectionStatus
ConnectionInfo
public ConnectionInfo()
- Creates a default instance with values expected for the default connection ID "0".
The ConnectionManager 1.0 specification says:
If optional action PrepareForConnection is not implemented then (limited) connection
information can be retrieved for ConnectionID 0. The device should return all known
information:
- RcsID should be 0 or -1
- AVTransportID should be 0 or -1
- ProtocolInfo should contain accurate information if it is known, otherwhise
it should be NULL (empty string)
- PeerConnectionManager should be NULL (empty string)
- PeerConnectionID should be -1
- Direction should be Input or Output
- Status should be OK or Unknown
ConnectionInfo
public ConnectionInfo(int connectionID,
int rcsID,
int avTransportID,
ProtocolInfo protocolInfo,
org.teleal.cling.model.ServiceReference peerConnectionManager,
int peerConnectionID,
ConnectionInfo.Direction direction,
ConnectionInfo.Status connectionStatus)
getConnectionID
public int getConnectionID()
getRcsID
public int getRcsID()
getAvTransportID
public int getAvTransportID()
getProtocolInfo
public ProtocolInfo getProtocolInfo()
getPeerConnectionManager
public org.teleal.cling.model.ServiceReference getPeerConnectionManager()
getPeerConnectionID
public int getPeerConnectionID()
getDirection
public ConnectionInfo.Direction getDirection()
getConnectionStatus
public ConnectionInfo.Status getConnectionStatus()
setConnectionStatus
public void setConnectionStatus(ConnectionInfo.Status connectionStatus)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.