Package org.yamcs.web
Class AngularHandler
java.lang.Object
org.yamcs.http.HttpHandler
org.yamcs.http.StaticFileHandler
org.yamcs.web.AngularHandler
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
ConstructorDescriptionAngularHandler
(YConfiguration config, HttpServer httpServer, Path mainDirectory, List<Path> extraStaticRoots) -
Method Summary
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
-
Constructor Details
-
AngularHandler
public AngularHandler(YConfiguration config, HttpServer httpServer, Path mainDirectory, List<Path> extraStaticRoots)
-
-
Method Details
-
handle
- Overrides:
handle
in classStaticFileHandler
-