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

Builds the set of addresses that may fetch a share. More...

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

Static Public Member Functions

static Set< String > build (Collection< String > receiverHosts, boolean localDeviceChosen, Collection< String > localAddresses)
 

Detailed Description

Builds the set of addresses that may fetch a share.

Plain Java; the glue passes plain strings and no name is ever resolved here (a host name from a device description is dropped, which the access policy then treats as "not allowed").

  • Every chosen remote receiver contributes its own addresses (the host of its descriptor URL and of its URL base).
  • The loopback addresses and this phone's own addresses are added ONLY when this device is itself a chosen receiver: its in-app player then fetches from one of them. Otherwise any local app that learned the key could use them.

Member Function Documentation

◆ build()

static Set< String > de.yaacc.share.ShareAddresses.build ( Collection< String > receiverHosts,
boolean localDeviceChosen,
Collection< String > localAddresses )
static
Parameters
receiverHostsraw hosts of the chosen remote receivers (IP literals, optionally bracketed; anything else is dropped), may be null
localDeviceChosentrue if this phone is one of the chosen receivers
localAddressesthis phone's own addresses, used only if localDeviceChosen; may be null
Returns
a new unmodifiable set of normalized addresses (ProxyAccessPolicy#normalizeAll); empty if nothing usable is left

Referenced by de.yaacc.share.ShareAddressResolver.resolve().

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

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