public class Results
extends java.lang.Object
Constructor and Description |
---|
Results() |
Modifier and Type | Method and Description |
---|---|
static AsyncResult |
async() |
static Result |
badRequest() |
static Result |
contentType(java.lang.String contentType) |
static Result |
created(com.google.common.base.Optional<java.lang.String> url) |
static Result |
forbidden() |
static Result |
html() |
static Result |
internalServerError() |
static Result |
json() |
static Result |
jsonp() |
static Result |
noContent() |
static Result |
notFound() |
static Result |
ok() |
static Result |
redirect(java.lang.String url)
A redirect that uses 303 see other.
|
static Result |
redirectTemporary(java.lang.String url)
A redirect that uses 307 see other.
|
static Result |
status(int statusCode) |
static Result |
text() |
static Result |
TODO() |
static Result |
unauthorized() |
static Result |
xml() |
public static Result status(int statusCode)
public static Result ok()
public static Result created(com.google.common.base.Optional<java.lang.String> url)
public static Result notFound()
public static Result forbidden()
public static Result unauthorized()
public static Result badRequest()
public static Result noContent()
public static Result internalServerError()
public static Result redirect(java.lang.String url)
NoHttpBody
that is set as renderable of
the Result.url
- The url used as redirect target.public static Result redirectTemporary(java.lang.String url)
NoHttpBody
that is set as renderable of
the Result.url
- The url used as redirect target.public static Result contentType(java.lang.String contentType)
public static Result html()
public static Result text()
public static Result json()
public static Result jsonp()
public static Result xml()
public static Result TODO()
public static AsyncResult async()
Copyright © 2016 ninjaframework. All Rights Reserved.