public class Results extends Object
| Constructor and Description |
|---|
Results() |
| Modifier and Type | Method and Description |
|---|---|
static AsyncResult |
async() |
static Result |
badRequest() |
static Result |
contentType(String contentType) |
static Result |
forbidden() |
static Result |
html() |
static Result |
html(int statusCode) |
static Result |
html(Object renderable)
Deprecated.
|
static Result |
internalServerError() |
static Result |
json() |
static Result |
json(int statusCode)
Deprecated.
|
static Result |
json(Object renderable) |
static Result |
noContent() |
static Result |
notFound() |
static Result |
ok() |
static Result |
redirect(String url)
A redirect that uses 303 see other.
|
static Result |
redirectTemporary(String url)
A redirect that uses 307 see other.
|
static Result |
status(int statusCode) |
static Result |
TODO() |
static Result |
xml() |
public static Result status(int statusCode)
public static Result ok()
public static Result notFound()
public static Result forbidden()
public static Result badRequest()
public static Result noContent()
public static Result internalServerError()
public static Result redirect(String url)
url - The url used as redirect target.public static Result redirectTemporary(String url)
url - The url used as redirect target.public static Result html()
public static Result html(int statusCode)
@Deprecated public static Result html(Object renderable)
renderable - @Deprecated public static Result json(int statusCode)
statusCode - public static Result json()
public static Result xml()
public static Result TODO()
public static AsyncResult async()
Copyright © 2013. All Rights Reserved.