Skip navigation links

Package org.ka2ddo.yaac.webserver

The package contains the classes that implement YAAC's mini webserver, which allows other users on the YAAC computer's LAN to effectively "look over the shoulder" of the YAAC operator, seeing the main views of YAAC as browsable web pages.

See: Description

Package org.ka2ddo.yaac.webserver Description

The package contains the classes that implement YAAC's mini webserver, which allows other users on the YAAC computer's LAN to effectively "look over the shoulder" of the YAAC operator, seeing the main views of YAAC as browsable web pages.

The HttpServer class is the main thread that accepts inbound connections from browsers, defaulting to listening on TCP port 8008 (because the normal HTTP port 80 is often considered as "privileged" and therefore not allocatable by non-administrator users).

HttpConnectionThread serves one browser connection, and can launch a page for any registered URL that is provided by a class extending the PathHandler abstract class; any URL that doesn't match a registered PathHandler's URL causes the HttpConnectionThread to properly return an HTTP 404 (Not Found) error. Pages currently implemented in core YAAC include:

URLClassFunction
/IndexPagehome page displaying a title, the default map, and links to other pages
/favicon.icoFavIconreturn the YAAC icon image in Windows BMP format
/map.pngMapPagereturn the actual map image in PNG format at its current pan and zoom
/stationsStationsPagedisplay the Stations/Objects list as an HTML table
/icon/*IconPagereturn a PNG file of one of the APRS symbol images as specified by the following path
/bulletinsBulletinsPagedisplay the Bulletin Board view as an HTML table
/messagesMessagesPagedisplay the Raw messages (not Raw Packets) view as an HTML table
/history/callsignHistoryPagedisplay the per-station raw packets view as an HTML table
/monitor/digiMonitorDigiPagedisplay a page of health-monitored digipeater and I-gate stations as an HTML table
/monitor/stationsMonitorStationsPagedisplay a page of health-monitored stations of all types as an HTML table
/monitor/wxMonitorWxPagedisplay a page of health-monitored weather stations as an HTML table
/wxWeatherPagepage showing the current weather at the local station
/robots.txtRobotsTxtPagerobots.txt page to block web spiders from surfing the entire mini-webserver
/special.nodes
/special.ways
FileCopierPagedownload this YAAC instance's special OSM files for supplementing the OSM map rendering
URLs of defined pages in mini-webserver

Adding other pages will require obtaining the HttpServer instance to register the new page handlers with appropriate URLs. Some plugins either do this with the core YAAC HttpServer instance (obtainable with the CoreProvider's CoreProvider.getCoreWebServer() method), or with another instance of HttpServer created for that plugin's own purposes.

Skip navigation links