Class ResponseFactory
java.lang.Object
com.djrapitops.plan.delivery.webserver.ResponseFactory
Factory for creating different
Response
objects.-
Constructor Summary
ConstructorDescriptionResponseFactory
(PlanFiles files, PlanConfig config, PublicHtmlFiles publicHtmlFiles, PageFactory pageFactory, Locale locale, DBSystem dbSystem, Formatters formatters, Theme theme, dagger.Lazy<Addresses> addresses, dagger.Lazy<BundleAddressCorrection> bundleAddressCorrection) -
Method Summary
Modifier and TypeMethodDescriptionbadRequest
(String errorMessage, String target) cssResponse
(long modified, String fileName) cssResponse
(String fileName) errorsPageResponse
(Request request) fontResponse
(long modified, String fileName) fontResponse
(String fileName) forbidden403
(String message) imageResponse
(long modified, String fileName) imageResponse
(String fileName) internalErrorResponse
(Throwable e, String cause) ipWhitelist403
(String accessor) javaScriptResponse
(long modified, String fileName) javaScriptResponse
(String fileName) jsonFileResponse
(String file) loginPageResponse
(Request request) networkPageResponse
(Request request) notFound404
(String message) playerPageResponse
(Request request, UUID playerUUID) playersPageResponse
(Request request) publicHtmlResourceResponse
(long modified, String fileName, String mimeType) publicHtmlResourceResponse
(String fileName, String mimeType) queryPageResponse
(Request request) rawPlayerPageResponse
(UUID playerUUID) reactPageResponse
(Request request) redirectResponse
(String location) registerPageResponse
(Request request) serverPageResponse
(Request request, ServerUUID serverUUID)
-
Constructor Details
-
ResponseFactory
@Inject public ResponseFactory(PlanFiles files, PlanConfig config, PublicHtmlFiles publicHtmlFiles, PageFactory pageFactory, Locale locale, DBSystem dbSystem, Formatters formatters, Theme theme, dagger.Lazy<Addresses> addresses, dagger.Lazy<BundleAddressCorrection> bundleAddressCorrection)
-
-
Method Details
-
playersPageResponse
-
internalErrorResponse
-
networkPageResponse
-
serverPageResponse
-
rawPlayerPageResponse
-
javaScriptResponse
-
javaScriptResponse
-
cssResponse
-
cssResponse
-
imageResponse
-
imageResponse
-
fontResponse
-
fontResponse
-
publicHtmlResourceResponse
-
publicHtmlResourceResponse
-
redirectResponse
-
faviconResponse
-
robotsResponse
-
pageNotFound404
-
uuidNotFound404
-
playerNotFound404
-
notFound404
-
forbidden403
-
forbidden403
-
failedLoginAttempts403
-
failedRateLimit403
-
ipWhitelist403
-
badRequest
-
playerPageResponse
-
loginPageResponse
-
registerPageResponse
-
queryPageResponse
-
errorsPageResponse
-
jsonFileResponse
-
reactPageResponse
-