Class NetworkPageExporter
java.lang.Object
com.djrapitops.plan.delivery.export.NetworkPageExporter
Handles exporting of /network page html, data and resources.
-
Constructor Summary
ConstructorDescriptionNetworkPageExporter
(PlanFiles files, PlanConfig config, DBSystem dbSystem, RootJSONResolver jsonHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Perform export for a network page.void
exportJSON
(ExportPaths exportPaths, Path toDirectory, Server server) Perform export for a network page json payload.static String[]
-
Constructor Details
-
NetworkPageExporter
@Inject public NetworkPageExporter(PlanFiles files, PlanConfig config, DBSystem dbSystem, RootJSONResolver jsonHandler)
-
-
Method Details
-
export
Perform export for a network page.- Parameters:
toDirectory
- Path to Export directoryserver
- 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 writtenNotFoundException
- If a file or resource that is being exported can not be found
-
getRedirections
-
exportJSON
Perform export for a network page json payload.- Parameters:
exportPaths
- Replacement store for player file paths.toDirectory
- Path to Export directoryserver
- 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 writtenNotFoundException
- If a file or resource that is being exported can not be found
-