YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.share.ShareAddressResolver Class Reference

Collects the addresses that may fetch a share from the currently chosen receivers. More...

Collaboration diagram for de.yaacc.share.ShareAddressResolver:
Collaboration graph

Static Public Member Functions

static Set< String > resolve (UpnpClient upnpClient, Context context)
 The addresses of the receivers currently stored as the selection.
 
static Set< String > resolve (UpnpClient upnpClient, Context context, Set< String > receiverIds)
 The addresses of explicitly given receivers (the ones the user picked for this share), independent of the stored selection.
 
static Set< String > ownAddresses (Context context)
 This phone's own addresses as text (the address used for the proxy URL and every address of the selected interface), for the link policy and for the allowed set when this phone is a chosen receiver.
 

Detailed Description

Collects the addresses that may fetch a share from the currently chosen receivers.

Reads the selection without changing it and never resolves a host name (no network call): a receiver whose description names a host instead of an IP address contributes nothing, so with the receiver restriction on it would be refused (the setting can be switched off).

A remote receiver contributes the host of its description URL and of its URL base. This phone (the local dummy device or a local renderer) contributes the loopback addresses and its own addresses, and only when it is a chosen receiver (ShareAddresses).

Member Function Documentation

◆ ownAddresses()

static Set< String > de.yaacc.share.ShareAddressResolver.ownAddresses ( Context context)
static

This phone's own addresses as text (the address used for the proxy URL and every address of the selected interface), for the link policy and for the allowed set when this phone is a chosen receiver.

No name is resolved. Empty if the phone has no address.

Referenced by de.yaacc.upnp.UpnpClient.createPlayableItem(), and de.yaacc.share.ShareAddressResolver.resolve().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resolve() [1/2]

static Set< String > de.yaacc.share.ShareAddressResolver.resolve ( UpnpClient upnpClient,
Context context )
static

The addresses of the receivers currently stored as the selection.

Returns
a new unmodifiable set of normalized addresses; empty if no chosen receiver is known

Referenced by de.yaacc.share.ShareService.prepare(), and de.yaacc.share.ShareAddressResolver.resolve().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resolve() [2/2]

static Set< String > de.yaacc.share.ShareAddressResolver.resolve ( UpnpClient upnpClient,
Context context,
Set< String > receiverIds )
static

The addresses of explicitly given receivers (the ones the user picked for this share), independent of the stored selection.

Parameters
receiverIdsthe chosen receiver ids; null or empty gives an empty set
Returns
a new unmodifiable set of normalized addresses; empty if no chosen receiver is known
Here is the call graph for this function:

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