Package org.jupnp.support.model
Klasse ConnectionInfo
java.lang.Object
org.jupnp.support.model.ConnectionInfo
Immutable type encapsulating the state of a single connection.
- Autor:
- Alessio Gaeta, Christian Bauer, Amit Kumar Mondal - Code Refactoring
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic enumstatic enum -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected final intprotected final intprotected ConnectionInfo.Statusprotected final ConnectionInfo.Directionprotected final intprotected final ServiceReferenceprotected final ProtocolInfoprotected final int -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCreates a default instance with values expected for the default connection ID "0".ConnectionInfo(int connectionID, int rcsID, int avTransportID, ProtocolInfo protocolInfo, ServiceReference peerConnectionManager, int peerConnectionID, ConnectionInfo.Direction direction, ConnectionInfo.Status connectionStatus) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanintintintintgetRcsID()inthashCode()voidsetConnectionStatus(ConnectionInfo.Status connectionStatus) toString()
-
Felddetails
-
connectionID
protected final int connectionID -
rcsID
protected final int rcsID -
avTransportID
protected final int avTransportID -
protocolInfo
-
peerConnectionManager
-
peerConnectionID
protected final int peerConnectionID -
direction
-
connectionStatus
-
-
Konstruktordetails
-
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, ServiceReference peerConnectionManager, int peerConnectionID, ConnectionInfo.Direction direction, ConnectionInfo.Status connectionStatus)
-
-
Methodendetails
-
getConnectionID
public int getConnectionID() -
getRcsID
public int getRcsID() -
getAvTransportID
public int getAvTransportID() -
getProtocolInfo
-
getPeerConnectionManager
-
getPeerConnectionID
public int getPeerConnectionID() -
getDirection
-
getConnectionStatus
-
setConnectionStatus
-
equals
-
hashCode
public int hashCode() -
toString
-