Klasse ServiceReference

java.lang.Object
org.jupnp.model.ServiceReference

public class ServiceReference extends Object
Combines a UDN and a ServiceId.

A service reference is useful to remember a service. For example, if a control point has accessed a service one, it can remember the service with Service.getReference(). Before every action invocation, it can now resolve the reference to an actually registered service with Registry.getService(ServiceReference). If the registry doesn't return a service for the given reference, the service is currently not available.

This simplifies implementing disconnect/reconnect behavior in a control point.

Autor:
Christian Bauer
  • Felddetails

  • Konstruktordetails

    • ServiceReference

      public ServiceReference(String s)
    • ServiceReference

      public ServiceReference(UDN udn, ServiceId serviceId)
  • Methodendetails

    • getUdn

      public UDN getUdn()
    • getServiceId

      public ServiceId getServiceId()
    • 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