Class ServerPageExporter

java.lang.Object
com.djrapitops.plan.delivery.export.ServerPageExporter

@Singleton public class ServerPageExporter extends Object
Handles exporting of /server page html, data and resources.
  • Constructor Details

  • Method Details

    • export

      public void export(Path toDirectory, Server server) throws IOException
      Perform export for a server page.
      Parameters:
      toDirectory - Path to Export directory
      server - Server to export
      Throws:
      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
    • getRedirections

      public static String[] getRedirections(ServerUUID serverUUID)
    • exportJSON

      public void exportJSON(Path toDirectory, Server server) throws IOException
      Perform export for a server page json payload.
      Parameters:
      toDirectory - Path to Export directory
      server - Server to export
      Throws:
      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