Class ResponseFactory


  • @Singleton
    public class ResponseFactory
    extends java.lang.Object
    Factory for creating different Response objects.
    • Method Detail

      • getResource

        public WebResource getResource​(java.lang.String resourceName)
      • playersPageResponse

        public Response playersPageResponse()
      • internalErrorResponse

        public Response internalErrorResponse​(java.lang.Throwable e,
                                              java.lang.String cause)
      • networkPageResponse

        public Response networkPageResponse()
      • serverPageResponse

        public Response serverPageResponse​(java.util.UUID serverUUID)
      • rawPlayerPageResponse

        public Response rawPlayerPageResponse​(java.util.UUID playerUUID)
      • javaScriptResponse

        public Response javaScriptResponse​(java.lang.String fileName)
      • cssResponse

        public Response cssResponse​(java.lang.String fileName)
      • imageResponse

        public Response imageResponse​(java.lang.String fileName)
      • fontResponse

        public Response fontResponse​(java.lang.String fileName)
      • redirectResponse

        public Response redirectResponse​(java.lang.String location)
      • faviconResponse

        public Response faviconResponse()
      • robotsResponse

        public Response robotsResponse()
      • pageNotFound404

        public Response pageNotFound404()
      • uuidNotFound404

        public Response uuidNotFound404()
      • playerNotFound404

        public Response playerNotFound404()
      • notFound404

        public Response notFound404​(java.lang.String message)
      • forbidden403

        public Response forbidden403()
      • forbidden403

        public Response forbidden403​(java.lang.String message)
      • failedLoginAttempts403

        public Response failedLoginAttempts403()
      • ipWhitelist403

        public Response ipWhitelist403​(java.lang.String accessor)
      • basicAuth

        public Response basicAuth()
      • badRequest

        public Response badRequest​(java.lang.String errorMessage,
                                   java.lang.String target)
      • playerPageResponse

        public Response playerPageResponse​(java.util.UUID playerUUID)
      • loginPageResponse

        public Response loginPageResponse()
      • registerPageResponse

        public Response registerPageResponse()
      • queryPageResponse

        public Response queryPageResponse()