Package net.targetr.rc.util


package net.targetr.rc.util
RCWeb identifier generation, HTTP response helpers and external API routing.

IdGen generates room and client identifiers and validates their format for incoming requests. These identifiers are used by room membership, browser connections, file transfers and MCP operations.

TemplatedHtmlResponse renders app Markdown into the shared HTML template using CommonMark. HttpManifestResponse fills a web app manifest with request, app and room details. EnhancedErrorFormatter supplies the application's templated error pages and diagnostic details.

ApiProxy maps supported API requests to predefined external targets and injects configured keys from api-keys.properties. These helpers build on the general HTTP response and proxy classes in net.targetr.wtm3.net.http.

Author:
Dr Michael Gardiner
  • Classes
    Class
    Description
    Proxies HTTP requests to external APIs, injecting necessary API keys.
    Enhances HTML error pages with additional connection and request details.
    Builds a web app manifest with an app-specific scope and room-specific start URL.
    Generates new IDs for rooms and clients.
    Wraps app Markdown or a built-in HTML information page in the shared template.