Uses of Class
io.mangoo.routing.Response
Packages that use Response
Package
Description
-
Uses of Response in io.mangoo.admin
Methods in io.mangoo.admin that return ResponseModifier and TypeMethodDescriptionAdminController.authenticate(Form form) AdminController.cache()AdminController.index()AdminController.logger()AdminController.loggerajax(Request request) AdminController.login()AdminController.logout()AdminController.routes()AdminController.tools()AdminController.twofactor()Methods in io.mangoo.admin with parameters of type Response -
Uses of Response in io.mangoo.interfaces.filters
Methods in io.mangoo.interfaces.filters that return ResponseModifier and TypeMethodDescriptionMethods in io.mangoo.interfaces.filters with parameters of type Response -
Uses of Response in io.mangoo.routing
Methods in io.mangoo.routing that return ResponseModifier and TypeMethodDescriptionResponse.andBinaryContent(byte[] content) Sends binary content to the client skipping renderingResponse.andBinaryFile(Path file) Sends a binary file to the client skipping renderingSets the body of the response.Response.andCharset(String charset) Sets a specific charset to the responseResponse.andContent(String name, Object object) Adds a value to the template that can be accessed using ${name} in the templateResponse.andContent(Map<String, Object> content) Adds a content map to the content rendered in the template.Response.andContentType(String contentType) Sets a specific content type to use for the response.Response.andCookie(io.undertow.server.handlers.Cookie cookie) Adds a Cookie to the response which is passed to the clientResponse.andEmptyBody()Disables template rendering, sending an empty body in the responseResponse.andEndResponse()Tells a filter that the response ends and that the request handler should not execute further filters by sending the current response to the client.Adds a header to the request response.Adds a header to the request response.Response.andHeaders(Map<io.undertow.util.HttpString, String> headers) Adds a header map to the response.Response.andJsonBody(Object jsonObject) Converts a given Object to JSON and passing it to the response.Response.andJsonBody(String json) Sets a given JSON string as body.Response.andTemplate(String template) Sets a specific template to use for the responseResponse.andTextBody(String body) Sets the body of the response.Response.andUnrenderedBody()Sets the content of a given file placed in the template folder in /templates/CONTROLLER_NAME/METHOD_NAME.body as body without rendering the file in the template engineAttachment.getResponse()static ResponseResponse.withBadRequest()Creates a response object with HTTP status code 400static ResponseResponse.withCreated()Creates a response object with HTTP status code 201static ResponseResponse.withForbidden()Creates a response object with HTTP status code 401static ResponseResponse.withInternalServerError()Creates a response object with HTTP status code 500static ResponseResponse.withNotFound()Creates a response object with HTTP status code 404static ResponseResponse.withOk()Creates a response object with HTTP status code 200static ResponseResponse.withRedirect(String redirectTo) Creates a response object with a given url to redirect tostatic ResponseResponse.withStatusCode(int statusCode) Creates a response object with a given HTTP status codestatic ResponseResponse.withUnauthorized()Creates a response object with HTTP status code 403Methods in io.mangoo.routing with parameters of type Response -
Uses of Response in io.mangoo.routing.handlers
Methods in io.mangoo.routing.handlers with parameters of type Response