abstract class Result extends java.lang.Object
Created by Kevin Sheppard June 26, 2024
| Modifiers | Name | Description |
|---|---|---|
static class |
Result.FileEntityResult |
|
static class |
Result.JsonEntityResult |
|
static class |
Result.ModelAndViewResult |
|
static class |
Result.RedirectResult |
|
static class |
Result.StatusResult |
| Constructor and description |
|---|
Result() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Result |
flashing(java.lang.String type, java.lang.String message)Set a flash message |
|
Result |
removingCookie(java.lang.String name)Remove a cookie from the response |
|
protected abstract void |
send() |
|
Result |
withCookie(Cookie cookie)Set a cookie |
|
Result |
withCookie(java.lang.String name, java.lang.String value, int maxAge) |
|
Result |
withCookie(java.lang.String name, java.lang.String value) |
|
Result |
withHeader(java.lang.String name, java.lang.String value)Add an HTTP header to the response |
|
protected Result |
withStatus(int statusCode) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Set a flash message
type - The type of message. Can be anything like "notice" or "error"message - The message to display to the userRemove a cookie from the response
name - The name of the cookieSet a cookie
cookie - The cookie to setAdd an HTTP header to the response
name - The header namevalue - The header value