Class ServerPageExporter
java.lang.Object
com.djrapitops.plan.delivery.export.ServerPageExporter
Handles exporting of /server page html, data and resources.
-
Constructor Summary
ConstructorDescriptionServerPageExporter
(PlanFiles files, PlanConfig config, DBSystem dbSystem, RootJSONResolver jsonHandler, ServerInfo serverInfo) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Perform export for a server page.void
exportJSON
(Path toDirectory, Server server) Perform export for a server page json payload.static String[]
getRedirections
(ServerUUID serverUUID)
-
Constructor Details
-
ServerPageExporter
@Inject public ServerPageExporter(PlanFiles files, PlanConfig config, DBSystem dbSystem, RootJSONResolver jsonHandler, ServerInfo serverInfo)
-
-
Method Details
-
export
Perform export for a server page.- Parameters:
toDirectory
- Path to Export directoryserver
- Server to export- 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 server page json payload.- Parameters:
toDirectory
- Path to Export directoryserver
- Server to export- 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
-