Uses of Class
dev.voidframework.web.http.Result
Packages that use Result
Package
Description
-
Uses of Result in dev.voidframework.web.filter
Methods in dev.voidframework.web.filter that return Result -
Uses of Result in dev.voidframework.web.http
Methods in dev.voidframework.web.http that return ResultModifier and TypeMethodDescriptionstatic ResultResult.badRequest(byte[] content, String contentType) Bad request (400).static ResultResult.badRequest(com.fasterxml.jackson.databind.JsonNode content) Bad request (400).static ResultResult.badRequest(TemplateResult templateResult) Bad request (400).static ResultResult.badRequest(String content) Bad request (400).static ResultCreated (201).static ResultResult.created(com.fasterxml.jackson.databind.JsonNode content) Created (201).static ResultResult.created(TemplateResult templateResult) Created (201).static ResultCreated (201).static ResultForbidden (403).static ResultResult.forbidden(com.fasterxml.jackson.databind.JsonNode content) Forbidden (403).static ResultResult.forbidden(TemplateResult templateResult) Forbidden (403).static ResultForbidden (403).static ResultResult.internalServerError(byte[] content, String contentType) Internal Server Error (500).static ResultResult.internalServerError(com.fasterxml.jackson.databind.JsonNode content) Internal Server Error (500).static ResultResult.internalServerError(TemplateResult templateResult) Internal Server Error (500).static ResultResult.internalServerError(String content) Internal Server Error (500).static ResultResult.noContent()No Content (204).static ResultNot Found (404).static ResultResult.notFound(com.fasterxml.jackson.databind.JsonNode content) Not Found (404).static ResultResult.notFound(TemplateResult templateResult) Not Found (404).static ResultNot Found (404).static ResultResult.notImplemented(byte[] content, String contentType) Not Implemented (501).static ResultResult.notImplemented(com.fasterxml.jackson.databind.JsonNode content) Not Implemented (501).static ResultResult.notImplemented(TemplateResult templateResult) Not Implemented (501).static ResultResult.notImplemented(String content) Not Implemented (501).static ResultOk (200).static ResultResult.ok(com.fasterxml.jackson.databind.JsonNode content) Ok (200).static ResultResult.ok(TemplateResult templateResult) Ok (200).static ResultResult.ok(InputStream content, String contentType) Ok (200).static ResultOk (200).ErrorHandler.onBadRequest(Context context, HttpException.BadRequest badRequestException) This method is called when the provided request is invalid.HttpRequestHandler.onBadRequest(Context context, HttpException.BadRequest cause) This method is called each time a bad request occur.ErrorHandler.onNotFound(Context context, HttpException.NotFound notFoundException) This method is called when no route has been found to satisfy the request.HttpRequestHandler.onRouteRequest(Context context) This method is called each time the framework need to route a request.ErrorHandler.onServerError(Context context, Throwable throwable) This method is called when an unexpected error occurs during the processing of the request.static ResultResult.redirectPermanentlyTo(String uri) Redirect Permanently (301).static ResultResult.redirectTemporaryTo(String uri) Redirect Temporary (302).Result.withCookie(Cookie cookie) Assigns a new cookie.Result.withHeader(String headerName, String value) Assigns a new header.Result.withoutCookie(Cookie cookie) Removes a cookie.Result.withoutCookie(String cookieName) Removes a cookie.Result.withoutHeader(String headerName) Removes a header. -
Uses of Result in dev.voidframework.web.http.controller
Methods in dev.voidframework.web.http.controller that return ResultModifier and TypeMethodDescriptionAbstractStaticAssetsController.staticAsset(Context context) Retrieves a static asset.AbstractStaticAssetsController.staticAsset(String fileName) Retrieves a static asset.AbstractStaticAssetsController.webjarAsset(String fileName) Retrieves a webjar asset. -
Uses of Result in dev.voidframework.web.http.impl
Methods in dev.voidframework.web.http.impl that return ResultModifier and TypeMethodDescriptionDefaultErrorHandler.onBadRequest(Context context, HttpException.BadRequest badRequestException) DefaultErrorHandler.onNotFound(Context context, HttpException.NotFound notFoundException) DefaultErrorHandler.onServerError(Context context, Throwable throwable)