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, PageFactory pageFactory, DBSystem dbSystem, RootJSONResolver jsonHandler, Theme theme, ServerInfo serverInfo)
-
Method Summary
-
Constructor Details
-
ServerPageExporter
@Inject public ServerPageExporter(PlanFiles files, PageFactory pageFactory, DBSystem dbSystem, RootJSONResolver jsonHandler, Theme theme, 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
-
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
-