@Singleton
public class ResponseFactory
extends java.lang.Object
Response
objects.Constructor and Description |
---|
ResponseFactory(PlanFiles files,
PageFactory pageFactory,
Locale locale,
DBSystem dbSystem,
Theme theme) |
@Inject public ResponseFactory(PlanFiles files, PageFactory pageFactory, Locale locale, DBSystem dbSystem, Theme theme)
public WebResource getResource(java.lang.String resourceName)
public Response debugPageResponse()
public Response playersPageResponse()
public Response internalErrorResponse(java.lang.Throwable e, java.lang.String s)
public Response networkPageResponse()
public Response serverPageResponse(java.util.UUID serverUUID)
public Response rawPlayerPageResponse(java.util.UUID playerUUID)
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)
public Response faviconResponse()
public Response pageNotFound404()
public Response uuidNotFound404()
public Response playerNotFound404()
public Response notFound404(java.lang.String message)
public Response basicAuthFail(WebUserAuthException e)
public Response forbidden403()
public Response forbidden403(java.lang.String message)
public Response basicAuth()
public Response badRequest(java.lang.String errorMessage, java.lang.String target)
public Response playerPageResponse(java.util.UUID playerUUID)