Class PageFactory
java.lang.Object
com.djrapitops.plan.delivery.rendering.pages.PageFactory
Factory for creating different
Page
objects.-
Constructor Summary
ConstructorDescriptionPageFactory(dagger.Lazy<VersionChecker> versionChecker, dagger.Lazy<PlanFiles> files, dagger.Lazy<PlanConfig> config, dagger.Lazy<Theme> theme, dagger.Lazy<DBSystem> dbSystem, dagger.Lazy<ServerInfo> serverInfo, dagger.Lazy<JSONStorage> jsonStorage, dagger.Lazy<Formatters> formatters, dagger.Lazy<Locale> locale)
-
Method Summary
Modifier and TypeMethodDescriptiongetResource(String name)
inspectPluginTabs(UUID playerUUID)
internalErrorPage(String message, Throwable error)
playerPage(UUID playerUUID)
serverPage(ServerUUID serverUUID)
Create a server page.
-
Constructor Details
-
PageFactory
@Inject public PageFactory(dagger.Lazy<VersionChecker> versionChecker, dagger.Lazy<PlanFiles> files, dagger.Lazy<PlanConfig> config, dagger.Lazy<Theme> theme, dagger.Lazy<DBSystem> dbSystem, dagger.Lazy<ServerInfo> serverInfo, dagger.Lazy<JSONStorage> jsonStorage, dagger.Lazy<Formatters> formatters, dagger.Lazy<Locale> locale)
-
-
Method Details
-
playersPage
- Throws:
IOException
-
serverPage
Create a server page.- Parameters:
serverUUID
- UUID of the server- Returns:
Page
that matches the server page.- Throws:
NotFoundException
- If the server can not be found in the database.IOException
- If the template files can not be read.
-
playerPage
- Throws:
IOException
-
inspectPluginTabs
-
networkPage
- Throws:
IOException
-
internalErrorPage
-
errorPage
- Throws:
IOException
-
errorPage
- Throws:
IOException
-
getResource
- Throws:
IOException
-
loginPage
- Throws:
IOException
-
registerPage
- Throws:
IOException
-
queryPage
- Throws:
IOException
-
errorsPage
- Throws:
IOException
-