|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.mvc.Results
public class Results
Common results.
Nested Class Summary | |
---|---|
static class |
Results.AsyncResult
Deprecated. return Promise<Result> from your actions instead. |
static class |
Results.ByteChunks
Chunked result based on byte[] chunks. |
static class |
Results.Chunks<A>
A Chunked result. |
static class |
Results.Redirect
A redirect result. |
static class |
Results.Status
A simple result. |
static class |
Results.StringChunks
Chunked result based on String chunks. |
static class |
Results.Todo
A 501 NOT_IMPLEMENTED simple result. |
Field Summary | |
---|---|
static Result |
TODO
Generates a 501 NOT_IMPLEMENTED simple result. |
Constructor Summary | |
---|---|
Results()
|
Method Summary | ||
---|---|---|
static
|
async(F.Promise<R> p)
Deprecated. Return Promise<Result> from your action instead |
|
static Results.Status |
badRequest()
Generates a 400 BAD_REQUEST simple result. |
|
static Results.Status |
badRequest(byte[] content)
Generates a 400 BAD_REQUEST simple result. |
|
static Results.Status |
badRequest(Content content)
Generates a 400 BAD_REQUEST simple result. |
|
static Results.Status |
badRequest(Content content,
java.lang.String charset)
Generates a 400 BAD_REQUEST simple result. |
|
static Results.Status |
badRequest(java.io.File content)
Generates a 400 BAD_REQUEST file result as an attachment. |
|
static Results.Status |
badRequest(java.io.File content,
boolean inline)
Generates a 400 BAD_REQUEST file result. |
|
static Results.Status |
badRequest(java.io.File content,
int chunkSize)
Deprecated. Since the length of the file is known, there is little reason to send a file as chunked. |
|
static Results.Status |
badRequest(java.io.File content,
java.lang.String filename)
Generates a 400 BAD_REQUEST file result as an attachment. |
|
static Results.Status |
badRequest(java.io.InputStream content)
Generates a 400 BAD_REQUEST chunked result. |
|
static Results.Status |
badRequest(java.io.InputStream content,
int chunkSize)
Generates a 400 BAD_REQUEST chunked result. |
|
static Results.Status |
badRequest(com.fasterxml.jackson.databind.JsonNode content)
Generates a 400 BAD_REQUEST simple result. |
|
static Results.Status |
badRequest(com.fasterxml.jackson.databind.JsonNode content,
java.lang.String charset)
Generates a 400 BAD_REQUEST simple result. |
|
static Results.Status |
badRequest(Results.Chunks<?> chunks)
Generates a 400 BAD_REQUEST chunked result. |
|
static Results.Status |
badRequest(java.lang.String content)
Generates a 400 BAD_REQUEST simple result. |
|
static Results.Status |
badRequest(java.lang.String content,
java.lang.String charset)
Generates a 400 BAD_REQUEST simple result. |
|
static Results.Status |
created()
Generates a 201 CREATED simple result. |
|
static Results.Status |
created(byte[] content)
Generates a 201 CREATED simple result. |
|
static Results.Status |
created(Content content)
Generates a 201 CREATED simple result. |
|
static Results.Status |
created(Content content,
java.lang.String charset)
Generates a 201 CREATED simple result. |
|
static Results.Status |
created(java.io.File content)
Generates a 201 CREATED file result as an attachment. |
|
static Results.Status |
created(java.io.File content,
boolean inline)
Generates a 201 CREATED file result. |
|
static Results.Status |
created(java.io.File content,
int chunkSize)
Deprecated. Since the length of the file is known, there is little reason to send a file as chunked. |
|
static Results.Status |
created(java.io.File content,
java.lang.String filename)
Generates a 201 CREATED file result as an attachment. |
|
static Results.Status |
created(java.io.InputStream content)
Generates a 201 CREATED chunked result. |
|
static Results.Status |
created(java.io.InputStream content,
int chunkSize)
Generates a 201 CREATED chunked result. |
|
static Results.Status |
created(com.fasterxml.jackson.databind.JsonNode content)
Generates a 201 CREATED simple result. |
|
static Results.Status |
created(com.fasterxml.jackson.databind.JsonNode content,
java.lang.String charset)
Generates a 201 CREATED simple result. |
|
static Results.Status |
created(Results.Chunks<?> chunks)
Generates a 201 CREATED chunked result. |
|
static Results.Status |
created(java.lang.String content)
Generates a 201 CREATED simple result. |
|
static Results.Status |
created(java.lang.String content,
java.lang.String charset)
Generates a 201 CREATED simple result. |
|
static Results.Status |
forbidden()
Generates a 403 FORBIDDEN simple result. |
|
static Results.Status |
forbidden(byte[] content)
Generates a 403 FORBIDDEN simple result. |
|
static Results.Status |
forbidden(Content content)
Generates a 403 FORBIDDEN simple result. |
|
static Results.Status |
forbidden(Content content,
java.lang.String charset)
Generates a 403 FORBIDDEN simple result. |
|
static Results.Status |
forbidden(java.io.File content)
Generates a 403 FORBIDDEN file result as an attachment. |
|
static Results.Status |
forbidden(java.io.File content,
boolean inline)
Generates a 403 FORBIDDEN file result. |
|
static Results.Status |
forbidden(java.io.File content,
int chunkSize)
Deprecated. Since the length of the file is known, there is little reason to send a file as chunked. |
|
static Results.Status |
forbidden(java.io.File content,
java.lang.String filename)
Generates a 403 FORBIDDEN file result as an attachment. |
|
static Results.Status |
forbidden(java.io.InputStream content)
Generates a 403 FORBIDDEN chunked result. |
|
static Results.Status |
forbidden(java.io.InputStream content,
int chunkSize)
Generates a 403 FORBIDDEN chunked result. |
|
static Results.Status |
forbidden(com.fasterxml.jackson.databind.JsonNode content)
Generates a 403 FORBIDDEN simple result. |
|
static Results.Status |
forbidden(com.fasterxml.jackson.databind.JsonNode content,
java.lang.String charset)
Generates a 403 FORBIDDEN simple result. |
|
static Results.Status |
forbidden(Results.Chunks<?> chunks)
Generates a 403 FORBIDDEN chunked result. |
|
static Results.Status |
forbidden(java.lang.String content)
Generates a 403 FORBIDDEN simple result. |
|
static Results.Status |
forbidden(java.lang.String content,
java.lang.String charset)
Generates a 403 FORBIDDEN simple result. |
|
static SimpleResult |
found(Call call)
Generates a 302 FOUND simple result. |
|
static SimpleResult |
found(java.lang.String url)
Generates a 302 FOUND simple result. |
|
static Results.Status |
internalServerError()
Generates a 500 INTERNAL_SERVER_ERROR simple result. |
|
static Results.Status |
internalServerError(byte[] content)
Generates a 500 INTERNAL_SERVER_ERROR simple result. |
|
static Results.Status |
internalServerError(Content content)
Generates a 500 INTERNAL_SERVER_ERROR simple result. |
|
static Results.Status |
internalServerError(Content content,
java.lang.String charset)
Generates a 500 INTERNAL_SERVER_ERROR simple result. |
|
static Results.Status |
internalServerError(java.io.File content)
Generates a 500 INTERNAL_SERVER_ERROR file result as an attachment. |
|
static Results.Status |
internalServerError(java.io.File content,
boolean inline)
Generates a 500 INTERNAL_SERVER_ERROR file result. |
|
static Results.Status |
internalServerError(java.io.File content,
int chunkSize)
Deprecated. Since the length of the file is known, there is little reason to send a file as chunked. |
|
static Results.Status |
internalServerError(java.io.File content,
java.lang.String filename)
Generates a 500 INTERNAL_SERVER_ERROR file result as an attachment. |
|
static Results.Status |
internalServerError(java.io.InputStream content)
Generates a 500 INTERNAL_SERVER_ERROR chunked result. |
|
static Results.Status |
internalServerError(java.io.InputStream content,
int chunkSize)
Generates a 500 INTERNAL_SERVER_ERROR chunked result. |
|
static Results.Status |
internalServerError(com.fasterxml.jackson.databind.JsonNode content)
Generates a 500 INTERNAL_SERVER_ERROR simple result. |
|
static Results.Status |
internalServerError(com.fasterxml.jackson.databind.JsonNode content,
java.lang.String charset)
Generates a 500 INTERNAL_SERVER_ERROR simple result. |
|
static Results.Status |
internalServerError(Results.Chunks<?> chunks)
Generates a 500 INTERNAL_SERVER_ERROR chunked result. |
|
static Results.Status |
internalServerError(java.lang.String content)
Generates a 500 INTERNAL_SERVER_ERROR simple result. |
|
static Results.Status |
internalServerError(java.lang.String content,
java.lang.String charset)
Generates a 500 INTERNAL_SERVER_ERROR simple result. |
|
static SimpleResult |
movedPermanently(Call call)
Generates a 301 MOVED_PERMANENTLY simple result. |
|
static SimpleResult |
movedPermanently(java.lang.String url)
Generates a 301 MOVED_PERMANENTLY simple result. |
|
static Results.Status |
noContent()
Generates a 204 NO_CONTENT simple result. |
|
static Results.Status |
notFound()
Generates a 404 NOT_FOUND simple result. |
|
static Results.Status |
notFound(byte[] content)
Generates a 404 NOT_FOUND simple result. |
|
static Results.Status |
notFound(Content content)
Generates a 404 NOT_FOUND simple result. |
|
static Results.Status |
notFound(Content content,
java.lang.String charset)
Generates a 404 NOT_FOUND simple result. |
|
static Results.Status |
notFound(java.io.File content)
Generates a 404 NOT_FOUND file result as an attachment. |
|
static Results.Status |
notFound(java.io.File content,
boolean inline)
Generates a 404 NOT_FOUND file result. |
|
static Results.Status |
notFound(java.io.File content,
int chunkSize)
Deprecated. Since the length of the file is known, there is little reason to send a file as chunked. |
|
static Results.Status |
notFound(java.io.File content,
java.lang.String filename)
Generates a 404 NOT_FOUND file result as an attachment. |
|
static Results.Status |
notFound(java.io.InputStream content)
Generates a 404 NOT_FOUND chunked result. |
|
static Results.Status |
notFound(java.io.InputStream content,
int chunkSize)
Generates a 404 NOT_FOUND chunked result. |
|
static Results.Status |
notFound(com.fasterxml.jackson.databind.JsonNode content)
Generates a 404 NOT_FOUND simple result. |
|
static Results.Status |
notFound(com.fasterxml.jackson.databind.JsonNode content,
java.lang.String charset)
Generates a 404 NOT_FOUND simple result. |
|
static Results.Status |
notFound(Results.Chunks<?> chunks)
Generates a 404 NOT_FOUND chunked result. |
|
static Results.Status |
notFound(java.lang.String content)
Generates a 404 NOT_FOUND simple result. |
|
static Results.Status |
notFound(java.lang.String content,
java.lang.String charset)
Generates a 404 NOT_FOUND simple result. |
|
static Results.Status |
ok()
Generates a 200 OK simple result. |
|
static Results.Status |
ok(byte[] content)
Generates a 200 OK simple result. |
|
static Results.Status |
ok(Content content)
Generates a 200 OK simple result. |
|
static Results.Status |
ok(Content content,
java.lang.String charset)
Generates a 200 OK simple result. |
|
static Results.Status |
ok(java.io.File content)
Generates a 200 OK file result as an attachment. |
|
static Results.Status |
ok(java.io.File content,
boolean inline)
Generates a 200 OK file result. |
|
static Results.Status |
ok(java.io.File content,
int chunkSize)
Deprecated. Since the length of the file is known, there is little reason to send a file as chunked. |
|
static Results.Status |
ok(java.io.File content,
java.lang.String filename)
Generates a 200 OK file result as an attachment. |
|
static Results.Status |
ok(java.io.InputStream content)
Generates a 200 OK chunked result. |
|
static Results.Status |
ok(java.io.InputStream content,
int chunkSize)
Generates a 200 OK chunked result. |
|
static Results.Status |
ok(com.fasterxml.jackson.databind.JsonNode content)
Generates a 200 OK simple result. |
|
static Results.Status |
ok(com.fasterxml.jackson.databind.JsonNode content,
java.lang.String charset)
Generates a 200 OK simple result. |
|
static Results.Status |
ok(Results.Chunks<?> chunks)
Generates a 200 OK chunked result. |
|
static Results.Status |
ok(java.lang.String content)
Generates a 200 OK simple result. |
|
static Results.Status |
ok(java.lang.String content,
java.lang.String charset)
Generates a 200 OK simple result. |
|
static SimpleResult |
redirect(Call call)
Generates a 303 SEE_OTHER simple result. |
|
static SimpleResult |
redirect(java.lang.String url)
Generates a 303 SEE_OTHER simple result. |
|
static SimpleResult |
seeOther(Call call)
Generates a 303 SEE_OTHER simple result. |
|
static SimpleResult |
seeOther(java.lang.String url)
Generates a 303 SEE_OTHER simple result. |
|
static Results.Status |
status(int status)
Generates a simple result. |
|
static Results.Status |
status(int status,
byte[] content)
Generates a simple result. |
|
static Results.Status |
status(int status,
Content content)
Generates a simple result. |
|
static Results.Status |
status(int status,
Content content,
java.lang.String charset)
Generates a simple result. |
|
static Results.Status |
status(int status,
java.io.File content)
Generates a chunked result. |
|
static Results.Status |
status(int status,
java.io.File content,
int chunkSize)
Generates a simple result. |
|
static Results.Status |
status(int status,
java.io.InputStream content)
Generates a chunked result. |
|
static Results.Status |
status(int status,
java.io.InputStream content,
int chunkSize)
Generates a chunked result. |
|
static Results.Status |
status(int status,
com.fasterxml.jackson.databind.JsonNode content)
Generates a simple result. |
|
static Results.Status |
status(int status,
com.fasterxml.jackson.databind.JsonNode content,
java.lang.String charset)
Generates a simple result. |
|
static Results.Status |
status(int status,
Results.Chunks<?> chunks)
Generates a chunked result. |
|
static Results.Status |
status(int status,
java.lang.String content)
Generates a simple result. |
|
static Results.Status |
status(int status,
java.lang.String content,
java.lang.String charset)
Generates a simple result. |
|
static SimpleResult |
temporaryRedirect(Call call)
Generates a 307 TEMPORARY_REDIRECT simple result. |
|
static SimpleResult |
temporaryRedirect(java.lang.String url)
Generates a 307 TEMPORARY_REDIRECT simple result. |
|
static Results.Status |
unauthorized()
Generates a 401 UNAUTHORIZED simple result. |
|
static Results.Status |
unauthorized(byte[] content)
Generates a 401 UNAUTHORIZED simple result. |
|
static Results.Status |
unauthorized(Content content)
Generates a 401 UNAUTHORIZED simple result. |
|
static Results.Status |
unauthorized(Content content,
java.lang.String charset)
Generates a 401 UNAUTHORIZED simple result. |
|
static Results.Status |
unauthorized(java.io.File content)
Generates a 401 UNAUTHORIZED file result as an attachment. |
|
static Results.Status |
unauthorized(java.io.File content,
boolean inline)
Generates a 401 UNAUTHORIZED file result. |
|
static Results.Status |
unauthorized(java.io.File content,
int chunkSize)
Deprecated. Since the length of the file is known, there is little reason to send a file as chunked. |
|
static Results.Status |
unauthorized(java.io.File content,
java.lang.String filename)
Generates a 401 UNAUTHORIZED file result as an attachment. |
|
static Results.Status |
unauthorized(java.io.InputStream content)
Generates a 401 UNAUTHORIZED chunked result. |
|
static Results.Status |
unauthorized(java.io.InputStream content,
int chunkSize)
Generates a 401 UNAUTHORIZED chunked result. |
|
static Results.Status |
unauthorized(com.fasterxml.jackson.databind.JsonNode content)
Generates a 401 UNAUTHORIZED simple result. |
|
static Results.Status |
unauthorized(com.fasterxml.jackson.databind.JsonNode content,
java.lang.String charset)
Generates a 401 UNAUTHORIZED simple result. |
|
static Results.Status |
unauthorized(Results.Chunks<?> chunks)
Generates a 401 UNAUTHORIZED chunked result. |
|
static Results.Status |
unauthorized(java.lang.String content)
Generates a 401 UNAUTHORIZED simple result. |
|
static Results.Status |
unauthorized(java.lang.String content,
java.lang.String charset)
Generates a 401 UNAUTHORIZED simple result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static Result TODO
Constructor Detail |
---|
public Results()
Method Detail |
---|
@Deprecated public static <R extends Result> Results.AsyncResult async(F.Promise<R> p)
public static Results.Status status(int status)
public static Results.Status status(int status, Content content)
public static Results.Status status(int status, Content content, java.lang.String charset)
public static Results.Status status(int status, java.lang.String content)
public static Results.Status status(int status, java.lang.String content, java.lang.String charset)
public static Results.Status status(int status, com.fasterxml.jackson.databind.JsonNode content)
public static Results.Status status(int status, com.fasterxml.jackson.databind.JsonNode content, java.lang.String charset)
public static Results.Status status(int status, byte[] content)
public static Results.Status status(int status, java.io.InputStream content)
public static Results.Status status(int status, java.io.InputStream content, int chunkSize)
public static Results.Status status(int status, java.io.File content)
public static Results.Status status(int status, java.io.File content, int chunkSize)
public static Results.Status status(int status, Results.Chunks<?> chunks)
public static Results.Status ok()
public static Results.Status ok(Content content)
public static Results.Status ok(Content content, java.lang.String charset)
public static Results.Status ok(java.lang.String content)
public static Results.Status ok(java.lang.String content, java.lang.String charset)
public static Results.Status ok(com.fasterxml.jackson.databind.JsonNode content)
public static Results.Status ok(com.fasterxml.jackson.databind.JsonNode content, java.lang.String charset)
public static Results.Status ok(byte[] content)
public static Results.Status ok(java.io.InputStream content)
public static Results.Status ok(java.io.InputStream content, int chunkSize)
public static Results.Status ok(java.io.File content)
content
- The file to send.public static Results.Status ok(java.io.File content, boolean inline)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.public static Results.Status ok(java.io.File content, java.lang.String filename)
content
- The file to send.filename
- The name to send the file as.@Deprecated public static Results.Status ok(java.io.File content, int chunkSize)
public static Results.Status ok(Results.Chunks<?> chunks)
public static Results.Status created()
public static Results.Status created(Content content)
public static Results.Status created(Content content, java.lang.String charset)
public static Results.Status created(java.lang.String content)
public static Results.Status created(java.lang.String content, java.lang.String charset)
public static Results.Status created(com.fasterxml.jackson.databind.JsonNode content)
public static Results.Status created(com.fasterxml.jackson.databind.JsonNode content, java.lang.String charset)
public static Results.Status created(byte[] content)
public static Results.Status created(java.io.InputStream content)
public static Results.Status created(java.io.InputStream content, int chunkSize)
public static Results.Status created(java.io.File content)
content
- The file to send.public static Results.Status created(java.io.File content, boolean inline)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.public static Results.Status created(java.io.File content, java.lang.String filename)
content
- The file to send.filename
- The name to send the file as.@Deprecated public static Results.Status created(java.io.File content, int chunkSize)
public static Results.Status created(Results.Chunks<?> chunks)
public static Results.Status noContent()
public static Results.Status internalServerError()
public static Results.Status internalServerError(Content content)
public static Results.Status internalServerError(Content content, java.lang.String charset)
public static Results.Status internalServerError(java.lang.String content)
public static Results.Status internalServerError(java.lang.String content, java.lang.String charset)
public static Results.Status internalServerError(com.fasterxml.jackson.databind.JsonNode content)
public static Results.Status internalServerError(com.fasterxml.jackson.databind.JsonNode content, java.lang.String charset)
public static Results.Status internalServerError(byte[] content)
public static Results.Status internalServerError(java.io.InputStream content)
public static Results.Status internalServerError(java.io.InputStream content, int chunkSize)
public static Results.Status internalServerError(java.io.File content)
content
- The file to send.public static Results.Status internalServerError(java.io.File content, boolean inline)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.public static Results.Status internalServerError(java.io.File content, java.lang.String filename)
content
- The file to send.filename
- The name to send the file as.@Deprecated public static Results.Status internalServerError(java.io.File content, int chunkSize)
public static Results.Status internalServerError(Results.Chunks<?> chunks)
public static Results.Status notFound()
public static Results.Status notFound(Content content)
public static Results.Status notFound(Content content, java.lang.String charset)
public static Results.Status notFound(java.lang.String content)
public static Results.Status notFound(java.lang.String content, java.lang.String charset)
public static Results.Status notFound(com.fasterxml.jackson.databind.JsonNode content)
public static Results.Status notFound(com.fasterxml.jackson.databind.JsonNode content, java.lang.String charset)
public static Results.Status notFound(byte[] content)
public static Results.Status notFound(java.io.InputStream content)
public static Results.Status notFound(java.io.InputStream content, int chunkSize)
public static Results.Status notFound(java.io.File content)
content
- The file to send.public static Results.Status notFound(java.io.File content, boolean inline)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.public static Results.Status notFound(java.io.File content, java.lang.String filename)
content
- The file to send.filename
- The name to send the file as.@Deprecated public static Results.Status notFound(java.io.File content, int chunkSize)
public static Results.Status notFound(Results.Chunks<?> chunks)
public static Results.Status forbidden()
public static Results.Status forbidden(Content content)
public static Results.Status forbidden(Content content, java.lang.String charset)
public static Results.Status forbidden(java.lang.String content)
public static Results.Status forbidden(java.lang.String content, java.lang.String charset)
public static Results.Status forbidden(com.fasterxml.jackson.databind.JsonNode content)
public static Results.Status forbidden(com.fasterxml.jackson.databind.JsonNode content, java.lang.String charset)
public static Results.Status forbidden(byte[] content)
public static Results.Status forbidden(java.io.InputStream content)
public static Results.Status forbidden(java.io.InputStream content, int chunkSize)
public static Results.Status forbidden(java.io.File content)
content
- The file to send.public static Results.Status forbidden(java.io.File content, boolean inline)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.public static Results.Status forbidden(java.io.File content, java.lang.String filename)
content
- The file to send.filename
- The name to send the file as.@Deprecated public static Results.Status forbidden(java.io.File content, int chunkSize)
public static Results.Status forbidden(Results.Chunks<?> chunks)
public static Results.Status unauthorized()
public static Results.Status unauthorized(Content content)
public static Results.Status unauthorized(Content content, java.lang.String charset)
public static Results.Status unauthorized(java.lang.String content)
public static Results.Status unauthorized(java.lang.String content, java.lang.String charset)
public static Results.Status unauthorized(com.fasterxml.jackson.databind.JsonNode content)
public static Results.Status unauthorized(com.fasterxml.jackson.databind.JsonNode content, java.lang.String charset)
public static Results.Status unauthorized(byte[] content)
public static Results.Status unauthorized(java.io.InputStream content)
public static Results.Status unauthorized(java.io.InputStream content, int chunkSize)
public static Results.Status unauthorized(java.io.File content)
content
- The file to send.public static Results.Status unauthorized(java.io.File content, boolean inline)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.public static Results.Status unauthorized(java.io.File content, java.lang.String filename)
content
- The file to send.filename
- The name to send the file as.@Deprecated public static Results.Status unauthorized(java.io.File content, int chunkSize)
public static Results.Status unauthorized(Results.Chunks<?> chunks)
public static Results.Status badRequest()
public static Results.Status badRequest(Content content)
public static Results.Status badRequest(Content content, java.lang.String charset)
public static Results.Status badRequest(java.lang.String content)
public static Results.Status badRequest(java.lang.String content, java.lang.String charset)
public static Results.Status badRequest(com.fasterxml.jackson.databind.JsonNode content)
public static Results.Status badRequest(com.fasterxml.jackson.databind.JsonNode content, java.lang.String charset)
public static Results.Status badRequest(byte[] content)
public static Results.Status badRequest(java.io.InputStream content)
public static Results.Status badRequest(java.io.InputStream content, int chunkSize)
public static Results.Status badRequest(java.io.File content)
content
- The file to send.public static Results.Status badRequest(java.io.File content, boolean inline)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.public static Results.Status badRequest(java.io.File content, java.lang.String filename)
content
- The file to send.filename
- The name to send the file as.@Deprecated public static Results.Status badRequest(java.io.File content, int chunkSize)
public static Results.Status badRequest(Results.Chunks<?> chunks)
public static SimpleResult redirect(java.lang.String url)
url
- The url to redirect.public static SimpleResult redirect(Call call)
call
- Call defining the url to redirect (typically comes from reverse router).public static SimpleResult found(java.lang.String url)
url
- The url to redirect.public static SimpleResult found(Call call)
call
- Call defining the url to redirect (typically comes from reverse router).public static SimpleResult movedPermanently(java.lang.String url)
url
- The url to redirect.public static SimpleResult movedPermanently(Call call)
call
- Call defining the url to redirect (typically comes from reverse router).public static SimpleResult seeOther(java.lang.String url)
url
- The url to redirect.public static SimpleResult seeOther(Call call)
call
- Call defining the url to redirect (typically comes from reverse router).public static SimpleResult temporaryRedirect(java.lang.String url)
url
- The url to redirect.public static SimpleResult temporaryRedirect(Call call)
call
- Call defining the url to redirect (typically comes from reverse router).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |