|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectninja.Results
public class Results
Constructor Summary | |
---|---|
Results()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Results()
Method Detail |
---|
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 contentType(String contentType)
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 json(Object renderable)
public static Result xml()
public static Result TODO()
public static AsyncResult async()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |