Klasse ConnectionInfo

java.lang.Object
org.jupnp.support.model.ConnectionInfo

public class ConnectionInfo extends Object
Immutable type encapsulating the state of a single connection.
Autor:
Alessio Gaeta, Christian Bauer, Amit Kumar Mondal - Code Refactoring
  • Felddetails

    • connectionID

      protected final int connectionID
    • rcsID

      protected final int rcsID
    • avTransportID

      protected final int avTransportID
    • protocolInfo

      protected final ProtocolInfo protocolInfo
    • peerConnectionManager

      protected final ServiceReference peerConnectionManager
    • peerConnectionID

      protected final int peerConnectionID
    • direction

      protected final ConnectionInfo.Direction direction
    • connectionStatus

      protected ConnectionInfo.Status 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

      public ProtocolInfo getProtocolInfo()
    • getPeerConnectionManager

      public 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(Object o)
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object