Class ServerPageExporter


  • @Singleton
    public class ServerPageExporter
    extends java.lang.Object
    Handles exporting of /server page html, data and resources.
    • Method Detail

      • export

        public void export​(java.nio.file.Path toDirectory,
                           Server server)
                    throws java.io.IOException
        Perform export for a server page.
        Parameters:
        toDirectory - Path to Export directory
        server - Server to export
        Throws:
        java.io.IOException - If a template can not be read from jar/disk or the result written
        NotFoundException - If a file or resource that is being exported can not be found
      • exportJSON

        public void exportJSON​(java.nio.file.Path toDirectory,
                               Server server)
                        throws java.io.IOException
        Perform export for a server page json payload.
        Parameters:
        toDirectory - Path to Export directory
        server - Server to export
        Throws:
        java.io.IOException - If a template can not be read from jar/disk or the result written
        NotFoundException - If a file or resource that is being exported can not be found