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

Validates the device id that appears in a proxy URL (/proxy/<deviceId>/<key>) and in the preference key manage_external_seeking_<deviceId>. More...

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

Static Public Member Functions

static boolean isValid (String id)
 

Static Public Attributes

static final int MAX_LENGTH = 200
 The longest accepted id.
 

Detailed Description

Validates the device id that appears in a proxy URL (/proxy/<deviceId>/<key>) and in the preference key manage_external_seeking_<deviceId>.

The id comes from the URL and is untrusted: it is accepted only if it looks like a UPnP device name (a UUID, optionally with a uuid: prefix, or the vendor ids seen in practice): 1 to 200 ASCII letters, digits and : . _ -. Anything else (separators, percent signs, whitespace, control or non-ASCII characters) is refused. Plain Java.


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