Package org.yamcs.web

Class AngularHandler

java.lang.Object
org.yamcs.http.HttpHandler
org.yamcs.http.StaticFileHandler
org.yamcs.web.AngularHandler

public class AngularHandler extends org.yamcs.http.StaticFileHandler
Serves the Yamcs UI, which is an Angular web application.

This class mostly serves static files generated by the Angular compiler, but will insert some dynamic elements. Specifically:

  • Allow hosting on custom context path, without needing a recompile.
  • Serve PWA webmanifest for local installation.
  • Serve index.html with dynamically inserted configuration elements.
  • Serve custom logo, without needing a recompile.
  • Field Summary

    Fields inherited from class org.yamcs.http.StaticFileHandler

    HTTP_CACHE_SECONDS, HTTP_DATE_FORMAT, HTTP_DATE_GMT_TIMEZONE, route, staticRoots

    Fields inherited from class org.yamcs.http.HttpHandler

    log, MIME
  • Constructor Summary

    Constructors
    Constructor
    Description
    AngularHandler(org.yamcs.YConfiguration config, org.yamcs.http.HttpServer httpServer, Path mainDirectory, List<Path> extraStaticRoots)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(org.yamcs.http.HandlerContext ctx)
     

    Methods inherited from class org.yamcs.http.StaticFileHandler

    getFilePath, locateFile, requireAuth, setContentTypeHeader, setDateHeader, setStaticRoots, setZeroCopyEnabled

    Methods inherited from class org.yamcs.http.HttpHandler

    doHandle, getAccessTokenFromCookie

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AngularHandler

      public AngularHandler(org.yamcs.YConfiguration config, org.yamcs.http.HttpServer httpServer, Path mainDirectory, List<Path> extraStaticRoots)
  • Method Details

    • handle

      public void handle(org.yamcs.http.HandlerContext ctx)
      Overrides:
      handle in class org.yamcs.http.StaticFileHandler