YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
org.fourthline.cling.model.ServiceReference Class Reference

Combines a org.fourthline.cling.model.types.UDN and a org.fourthline.cling.model.types.ServiceId. More...

Collaboration diagram for org.fourthline.cling.model.ServiceReference:
Collaboration graph

Public Member Functions

 ServiceReference (String s)
 
 ServiceReference (UDN udn, ServiceId serviceId)
 
UDN getUdn ()
 
ServiceId getServiceId ()
 
boolean equals (Object o)
 
int hashCode ()
 
String toString ()
 

Static Public Attributes

static final String DELIMITER = "/"
 

Detailed Description

Combines a org.fourthline.cling.model.types.UDN and a org.fourthline.cling.model.types.ServiceId.

A service reference is useful to remember a service. For example, if a control point has accessed a service once, it can remember the service with org.fourthline.cling.model.meta.Service#getReference(). Before every action invocation, it can now resolve the reference to an actually registered service with org.fourthline.cling.registry.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.

Author
Christian Bauer

The documentation for this class was generated from the following file: