Class ResponseFactory
java.lang.Object
com.djrapitops.plan.delivery.webserver.ResponseFactory
Factory for creating different
Response
objects.-
Constructor Summary
ConstructorDescriptionResponseFactory
(PlanFiles files, PageFactory pageFactory, Locale locale, DBSystem dbSystem, Theme theme, dagger.Lazy<Addresses> addresses) -
Method Summary
Modifier and TypeMethodDescriptionbadRequest
(String errorMessage, String target) cssResponse
(String fileName) fontResponse
(String fileName) forbidden403
(String message) getResource
(String resourceName) imageResponse
(String fileName) internalErrorResponse
(Throwable e, String cause) ipWhitelist403
(String accessor) javaScriptResponse
(String fileName) jsonFileResponse
(String file) notFound404
(String message) playerPageResponse
(UUID playerUUID) rawPlayerPageResponse
(UUID playerUUID) redirectResponse
(String location) serverPageResponse
(ServerUUID serverUUID)
-
Constructor Details
-
ResponseFactory
-
-
Method Details
-
getResource
-
playersPageResponse
-
internalErrorResponse
-
networkPageResponse
-
serverPageResponse
-
rawPlayerPageResponse
-
javaScriptResponse
-
cssResponse
-
imageResponse
-
fontResponse
-
redirectResponse
-
faviconResponse
-
robotsResponse
-
pageNotFound404
-
uuidNotFound404
-
playerNotFound404
-
notFound404
-
basicAuthFail
-
forbidden403
-
forbidden403
-
failedLoginAttempts403
-
ipWhitelist403
-
basicAuth
-
badRequest
-
playerPageResponse
-
loginPageResponse
-
registerPageResponse
-
queryPageResponse
-
errorsPageResponse
-
jsonFileResponse
-