@Singleton
public class ResponseFactory
extends java.lang.Object
Response
objects.Constructor and Description |
---|
ResponseFactory(VersionCheckSystem versionCheckSystem,
PlanFiles files,
PageFactory pageFactory,
Locale locale,
DBSystem dbSystem) |
@Inject public ResponseFactory(VersionCheckSystem versionCheckSystem, PlanFiles files, PageFactory pageFactory, Locale locale, DBSystem dbSystem)
public Response debugPageResponse()
public Response playersPageResponse()
public ErrorResponse internalErrorResponse(java.lang.Throwable e, java.lang.String s)
public Response networkPageResponse()
public Response serverPageResponse(java.util.UUID serverUUID) throws NotFoundException
NotFoundException
public RawDataResponse rawPlayerPageResponse(java.util.UUID uuid)
public Response javaScriptResponse(java.lang.String fileName)
public Response cssResponse(java.lang.String fileName)
public Response imageResponse(java.lang.String fileName)
public Response fontResponse(java.lang.String fileName)
public Response redirectResponse(java.lang.String location)
location
- Starts with '/'public Response faviconResponse()
public ErrorResponse pageNotFound404()
public ErrorResponse uuidNotFound404()
public ErrorResponse playerNotFound404()
public ErrorResponse notFound404(java.lang.String message)
public ErrorResponse basicAuthFail(WebUserAuthException e)
public ErrorResponse forbidden403()
public ErrorResponse forbidden403(java.lang.String message)
public ErrorResponse basicAuth()
public BadRequestResponse badRequest(java.lang.String errorMessage, java.lang.String target)
public Response playerPageResponse(java.util.UUID playerUUID)