YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.fcast.FCastSheetTrace Class Reference

The troubleshooting trace of the settings sheet (task 5.3): the last events the sheet saw (the connection, the protocol version, the playback state, errors), bounded to {@value MAX_LINES} lines of at most {@value MAX_LINE} characters, each line cleaned. More...

Collaboration diagram for de.yaacc.fcast.FCastSheetTrace:
Collaboration graph

Public Member Functions

synchronized void add (String line)
 Adds a line (cleaned and cut); the oldest line goes when the trace is full.
 
synchronized List< String > lines ()
 The lines, oldest first.
 
synchronized String text ()
 The trace as one text for the clipboard.
 

Static Public Member Functions

static String shorten (String url)
 

Static Public Attributes

static final int MAX_LINES = 50
 
static final int MAX_LINE = 160
 

Detailed Description

The troubleshooting trace of the settings sheet (task 5.3): the last events the sheet saw (the connection, the protocol version, the playback state, errors), bounded to {@value MAX_LINES} lines of at most {@value MAX_LINE} characters, each line cleaned.

A URL in a line is shortened to its host and path (shorten): no user information, no query string, no fragment. The trace is for the screen and the clipboard; it never goes to the log. Pure and thread safe.

Member Function Documentation

◆ shorten()

static String de.yaacc.fcast.FCastSheetTrace.shorten ( String url)
static
Returns
scheme://host:port/path of an http or https address, without user information, query and fragment; other text unchanged

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