Class NetworkPageExporter

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

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

  • Method Details

    • export

      public void export(Path toDirectory, Server server) throws IOException
      Perform export for a network page.
      Parameters:
      toDirectory - Path to Export directory
      server - Server to export as Network page, Server.isProxy() assumed true.
      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()
    • exportJSON

      public void exportJSON(ExportPaths exportPaths, Path toDirectory, Server server) throws IOException
      Perform export for a network page json payload.
      Parameters:
      exportPaths - Replacement store for player file paths.
      toDirectory - Path to Export directory
      server - Server to export as Network page, Server.isProxy() assumed true.
      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