public class Results extends Object
Constructor and Description |
---|
Results() |
Modifier and Type | Method and Description |
---|---|
static StatusHeader |
badRequest()
Generates a 400 Bad Request result.
|
static Result |
badRequest(byte[] content)
Generates a 400 Bad Request result.
|
static Result |
badRequest(play.twirl.api.Content content)
Generates a 400 Bad Request result.
|
static Result |
badRequest(play.twirl.api.Content content,
String charset)
Generates a 400 Bad Request result.
|
static Result |
badRequest(File content)
Generates a 400 Bad Request result.
|
static Result |
badRequest(File content,
boolean inline)
Generates a 400 Bad Request result.
|
static Result |
badRequest(File content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 400 Bad Request result.
|
static Result |
badRequest(File content,
boolean inline,
Optional<String> filename)
Generates a 400 Bad Request result.
|
static Result |
badRequest(File content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 400 Bad Request result.
|
static Result |
badRequest(File content,
FileMimeTypes fileMimeTypes)
Generates a 400 Bad Request result.
|
static Result |
badRequest(File content,
Optional<String> filename)
Generates a 400 Bad Request result.
|
static Result |
badRequest(File content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 400 Bad Request result.
|
static Result |
badRequest(File content,
String filename)
Deprecated.
Deprecated as of 2.8.0. Use to
badRequest(File, Optional) . |
static Result |
badRequest(File content,
String filename,
FileMimeTypes fileMimeTypes)
Deprecated.
Deprecated as of 2.8.0. Use to
badRequest(File, Optional, FileMimeTypes) . |
static Result |
badRequest(InputStream content)
Generates a 400 Bad Request result.
|
static Result |
badRequest(InputStream content,
long contentLength)
Generates a 400 Bad Request result.
|
static Result |
badRequest(com.fasterxml.jackson.databind.JsonNode content)
Generates a 400 Bad Request result.
|
static Result |
badRequest(com.fasterxml.jackson.databind.JsonNode content,
com.fasterxml.jackson.core.JsonEncoding encoding)
Generates a 400 Bad Request result.
|
static Result |
badRequest(Path content)
Generates a 400 Bad Request result.
|
static Result |
badRequest(Path content,
boolean inline)
Generates a 400 Bad Request result.
|
static Result |
badRequest(Path content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 400 Bad Request result.
|
static Result |
badRequest(Path content,
boolean inline,
Optional<String> filename)
Generates a 400 Bad Request result.
|
static Result |
badRequest(Path content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 400 Bad Request result.
|
static Result |
badRequest(Path content,
FileMimeTypes fileMimeTypes)
Generates a 400 Bad Request result.
|
static Result |
badRequest(Path content,
Optional<String> filename)
Generates a 400 Bad Request result.
|
static Result |
badRequest(Path content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 400 Bad Request result.
|
static Result |
badRequest(String content)
Generates a 400 Bad Request result.
|
static Result |
badRequest(String content,
String charset)
Generates a 400 Bad Request result.
|
static Map<String,String> |
contentDispositionHeader(boolean inline,
Optional<String> name)
Creates a
Content-Disposition header.According to RFC 6266 (Section 4.2) there is no need to send the header "Content-Disposition: inline" . |
static StatusHeader |
created()
Generates a 201 Created result.
|
static Result |
created(byte[] content)
Generates a 201 Created result.
|
static Result |
created(play.twirl.api.Content content)
Generates a 201 Created result.
|
static Result |
created(play.twirl.api.Content content,
String charset)
Generates a 201 Created result.
|
static Result |
created(File content)
Generates a 201 Created result.
|
static Result |
created(File content,
boolean inline)
Generates a 201 Created result.
|
static Result |
created(File content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 201 Created result.
|
static Result |
created(File content,
boolean inline,
Optional<String> filename)
Generates a 201 Created result.
|
static Result |
created(File content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 201 Created result.
|
static Result |
created(File content,
FileMimeTypes fileMimeTypes)
Generates a 201 Created result.
|
static Result |
created(File content,
Optional<String> filename)
Generates a 201 Created result.
|
static Result |
created(File content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 201 Created result.
|
static Result |
created(File content,
String filename)
Deprecated.
Deprecated as of 2.8.0. Use to
created(File, Optional) . |
static Result |
created(File content,
String filename,
FileMimeTypes fileMimeTypes)
Deprecated.
Deprecated as of 2.8.0. Use to
created(File, Optional, FileMimeTypes) . |
static Result |
created(InputStream content)
Generates a 201 Created result.
|
static Result |
created(InputStream content,
long contentLength)
Generates a 201 Created result.
|
static Result |
created(com.fasterxml.jackson.databind.JsonNode content)
Generates a 201 Created result.
|
static Result |
created(com.fasterxml.jackson.databind.JsonNode content,
com.fasterxml.jackson.core.JsonEncoding encoding)
Generates a 201 Created result.
|
static Result |
created(Path content)
Generates a 201 Created result.
|
static Result |
created(Path content,
boolean inline)
Generates a 201 Created result.
|
static Result |
created(Path content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 201 Created result.
|
static Result |
created(Path content,
boolean inline,
Optional<String> filename)
Generates a 201 Created result.
|
static Result |
created(Path content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 201 Created result.
|
static Result |
created(Path content,
FileMimeTypes fileMimeTypes)
Generates a 201 Created result.
|
static Result |
created(Path content,
Optional<String> filename)
Generates a 201 Created result.
|
static Result |
created(Path content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 201 Created result.
|
static Result |
created(String content)
Generates a 201 Created result.
|
static Result |
created(String content,
String charset)
Generates a 201 Created result.
|
static StatusHeader |
forbidden()
Generates a 403 Forbidden result.
|
static Result |
forbidden(byte[] content)
Generates a 403 Forbidden result.
|
static Result |
forbidden(play.twirl.api.Content content)
Generates a 403 Forbidden result.
|
static Result |
forbidden(play.twirl.api.Content content,
String charset)
Generates a 403 Forbidden result.
|
static Result |
forbidden(File content)
Generates a 403 Forbidden result.
|
static Result |
forbidden(File content,
boolean inline)
Generates a 403 Forbidden result.
|
static Result |
forbidden(File content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 403 Forbidden result.
|
static Result |
forbidden(File content,
boolean inline,
Optional<String> filename)
Generates a 403 Forbidden result.
|
static Result |
forbidden(File content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 403 Forbidden result.
|
static Result |
forbidden(File content,
FileMimeTypes fileMimeTypes)
Generates a 403 Forbidden result.
|
static Result |
forbidden(File content,
Optional<String> filename)
Generates a 403 Forbidden result.
|
static Result |
forbidden(File content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 403 Forbidden result.
|
static Result |
forbidden(File content,
String filename)
Deprecated.
Deprecated as of 2.8.0. Use to
forbidden(File, Optional) . |
static Result |
forbidden(File content,
String filename,
FileMimeTypes fileMimeTypes)
Deprecated.
Deprecated as of 2.8.0. Use to
forbidden(File, Optional, FileMimeTypes) . |
static Result |
forbidden(InputStream content)
Generates a 403 Forbidden result.
|
static Result |
forbidden(InputStream content,
long contentLength)
Generates a 403 Forbidden result.
|
static Result |
forbidden(com.fasterxml.jackson.databind.JsonNode content)
Generates a 403 Forbidden result.
|
static Result |
forbidden(com.fasterxml.jackson.databind.JsonNode content,
com.fasterxml.jackson.core.JsonEncoding encoding)
Generates a 403 Forbidden result.
|
static Result |
forbidden(Path content)
Generates a 403 Forbidden result.
|
static Result |
forbidden(Path content,
boolean inline)
Generates a 403 Forbidden result.
|
static Result |
forbidden(Path content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 403 Forbidden result.
|
static Result |
forbidden(Path content,
boolean inline,
Optional<String> filename)
Generates a 403 Forbidden result.
|
static Result |
forbidden(Path content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 403 Forbidden result.
|
static Result |
forbidden(Path content,
FileMimeTypes fileMimeTypes)
Generates a 403 Forbidden result.
|
static Result |
forbidden(Path content,
Optional<String> filename)
Generates a 403 Forbidden result.
|
static Result |
forbidden(Path content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 403 Forbidden result.
|
static Result |
forbidden(String content)
Generates a 403 Forbidden result.
|
static Result |
forbidden(String content,
String charset)
Generates a 403 Forbidden result.
|
static Result |
found(Call call)
Generates a 302 Found result.
|
static Result |
found(String url)
Generates a 302 Found result.
|
static StatusHeader |
internalServerError()
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(byte[] content)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(play.twirl.api.Content content)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(play.twirl.api.Content content,
String charset)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(File content)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(File content,
boolean inline)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(File content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(File content,
boolean inline,
Optional<String> filename)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(File content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(File content,
FileMimeTypes fileMimeTypes)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(File content,
Optional<String> filename)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(File content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(File content,
String filename)
Deprecated.
Deprecated as of 2.8.0. Use to
internalServerError(File, Optional) . |
static Result |
internalServerError(File content,
String filename,
FileMimeTypes fileMimeTypes)
Deprecated.
Deprecated as of 2.8.0. Use to
internalServerError(File, Optional,
FileMimeTypes) . |
static Result |
internalServerError(InputStream content)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(InputStream content,
long contentLength)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(com.fasterxml.jackson.databind.JsonNode content)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(com.fasterxml.jackson.databind.JsonNode content,
com.fasterxml.jackson.core.JsonEncoding encoding)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(Path content)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(Path content,
boolean inline)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(Path content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(Path content,
boolean inline,
Optional<String> filename)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(Path content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(Path content,
FileMimeTypes fileMimeTypes)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(Path content,
Optional<String> filename)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(Path content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(String content)
Generates a 500 Internal Server Error result.
|
static Result |
internalServerError(String content,
String charset)
Generates a 500 Internal Server Error result.
|
static Result |
movedPermanently(Call call)
Generates a 301 Moved Permanently result.
|
static Result |
movedPermanently(String url)
Generates a 301 Moved Permanently result.
|
static StatusHeader |
networkAuthenticationRequired()
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(byte[] content)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(play.twirl.api.Content content)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(play.twirl.api.Content content,
String charset)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(File content)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(File content,
boolean inline)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(File content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(File content,
boolean inline,
Optional<String> filename)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(File content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(File content,
FileMimeTypes fileMimeTypes)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(File content,
Optional<String> filename)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(File content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(File content,
String filename)
Deprecated.
Deprecated as of 2.8.0. Use to
networkAuthenticationRequired(File,
Optional) . |
static Result |
networkAuthenticationRequired(File content,
String filename,
FileMimeTypes fileMimeTypes)
Deprecated.
Deprecated as of 2.8.0. Use to
networkAuthenticationRequired(File,
Optional, FileMimeTypes) . |
static Result |
networkAuthenticationRequired(InputStream content)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(InputStream content,
long contentLength)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(com.fasterxml.jackson.databind.JsonNode content)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(com.fasterxml.jackson.databind.JsonNode content,
com.fasterxml.jackson.core.JsonEncoding encoding)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(Path content)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(Path content,
boolean inline)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(Path content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(Path content,
boolean inline,
Optional<String> filename)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(Path content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(Path content,
FileMimeTypes fileMimeTypes)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(Path content,
Optional<String> filename)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(Path content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(String content)
Generates a 511 Network Authentication Required result.
|
static Result |
networkAuthenticationRequired(String content,
String charset)
Generates a 511 Network Authentication Required result.
|
static StatusHeader |
noContent()
Generates a 204 No Content result.
|
static StatusHeader |
notAcceptable()
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(byte[] content)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(play.twirl.api.Content content)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(play.twirl.api.Content content,
String charset)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(File content)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(File content,
boolean inline)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(File content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(File content,
boolean inline,
Optional<String> filename)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(File content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(File content,
FileMimeTypes fileMimeTypes)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(File content,
Optional<String> filename)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(File content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(File content,
String filename)
Deprecated.
Deprecated as of 2.8.0. Use to
notAcceptable(File, Optional) . |
static Result |
notAcceptable(File content,
String filename,
FileMimeTypes fileMimeTypes)
Deprecated.
Deprecated as of 2.8.0. Use to
notAcceptable(File, Optional,
FileMimeTypes) . |
static Result |
notAcceptable(InputStream content)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(InputStream content,
long contentLength)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(com.fasterxml.jackson.databind.JsonNode content)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(com.fasterxml.jackson.databind.JsonNode content,
com.fasterxml.jackson.core.JsonEncoding encoding)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(Path content)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(Path content,
boolean inline)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(Path content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(Path content,
boolean inline,
Optional<String> filename)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(Path content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(Path content,
FileMimeTypes fileMimeTypes)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(Path content,
Optional<String> filename)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(Path content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(String content)
Generates a 406 Not Acceptable result.
|
static Result |
notAcceptable(String content,
String charset)
Generates a 406 Not Acceptable result.
|
static StatusHeader |
notFound()
Generates a 404 Not Found result.
|
static Result |
notFound(byte[] content)
Generates a 404 Not Found result.
|
static Result |
notFound(play.twirl.api.Content content)
Generates a 404 Not Found result.
|
static Result |
notFound(play.twirl.api.Content content,
String charset)
Generates a 404 Not Found result.
|
static Result |
notFound(File content)
Generates a 404 Not Found result.
|
static Result |
notFound(File content,
boolean inline)
Generates a 404 Not Found result.
|
static Result |
notFound(File content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 404 Not Found result.
|
static Result |
notFound(File content,
boolean inline,
Optional<String> filename)
Generates a 404 Not Found result.
|
static Result |
notFound(File content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 404 Not Found result.
|
static Result |
notFound(File content,
FileMimeTypes fileMimeTypes)
Generates a 404 Not Found result.
|
static Result |
notFound(File content,
Optional<String> filename)
Generates a 404 Not Found result.
|
static Result |
notFound(File content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 404 Not Found result.
|
static Result |
notFound(File content,
String filename)
Deprecated.
Deprecated as of 2.8.0. Use to
notFound(File, Optional) . |
static Result |
notFound(File content,
String filename,
FileMimeTypes fileMimeTypes)
Deprecated.
Deprecated as of 2.8.0. Use to
notFound(File, Optional, FileMimeTypes) . |
static Result |
notFound(InputStream content)
Generates a 404 Not Found result.
|
static Result |
notFound(InputStream content,
long contentLength)
Generates a 404 Not Found result.
|
static Result |
notFound(com.fasterxml.jackson.databind.JsonNode content)
Generates a 404 Not Found result.
|
static Result |
notFound(com.fasterxml.jackson.databind.JsonNode content,
com.fasterxml.jackson.core.JsonEncoding encoding)
Generates a 404 Not Found result.
|
static Result |
notFound(Path content)
Generates a 404 Not Found result.
|
static Result |
notFound(Path content,
boolean inline)
Generates a 404 Not Found result.
|
static Result |
notFound(Path content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 404 Not Found result.
|
static Result |
notFound(Path content,
boolean inline,
Optional<String> filename)
Generates a 404 Not Found result.
|
static Result |
notFound(Path content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 404 Not Found result.
|
static Result |
notFound(Path content,
FileMimeTypes fileMimeTypes)
Generates a 404 Not Found result.
|
static Result |
notFound(Path content,
Optional<String> filename)
Generates a 404 Not Found result.
|
static Result |
notFound(Path content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 404 Not Found result.
|
static Result |
notFound(String content)
Generates a 404 Not Found result.
|
static Result |
notFound(String content,
String charset)
Generates a 404 Not Found result.
|
static StatusHeader |
ok()
Generates a 200 OK result.
|
static Result |
ok(byte[] content)
Generates a 200 OK result.
|
static Result |
ok(play.twirl.api.Content content)
Generates a 200 OK result.
|
static Result |
ok(play.twirl.api.Content content,
String charset)
Generates a 200 OK result.
|
static Result |
ok(File content)
Generates a 200 OK result.
|
static Result |
ok(File content,
boolean inline)
Generates a 200 OK result.
|
static Result |
ok(File content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 200 OK result.
|
static Result |
ok(File content,
boolean inline,
Optional<String> filename)
Generates a 200 OK result.
|
static Result |
ok(File content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 200 OK result.
|
static Result |
ok(File content,
FileMimeTypes fileMimeTypes)
Generates a 200 OK result.
|
static Result |
ok(File content,
Optional<String> filename)
Generates a 200 OK result.
|
static Result |
ok(File content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 200 OK result.
|
static Result |
ok(File content,
String filename)
Deprecated.
Deprecated as of 2.8.0. Use to
ok(File, Optional) . |
static Result |
ok(File content,
String filename,
FileMimeTypes fileMimeTypes)
Deprecated.
Deprecated as of 2.8.0. Use to
ok(File, Optional, FileMimeTypes) . |
static Result |
ok(InputStream content)
Generates a 200 OK result.
|
static Result |
ok(InputStream content,
long contentLength)
Generates a 200 OK result.
|
static Result |
ok(com.fasterxml.jackson.databind.JsonNode content)
Generates a 200 OK result.
|
static Result |
ok(com.fasterxml.jackson.databind.JsonNode content,
com.fasterxml.jackson.core.JsonEncoding encoding)
Generates a 200 OK result.
|
static Result |
ok(Path content)
Generates a 200 OK result.
|
static Result |
ok(Path content,
boolean inline)
Generates a 200 OK result.
|
static Result |
ok(Path content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 200 OK result.
|
static Result |
ok(Path content,
boolean inline,
Optional<String> filename)
Generates a 200 OK result.
|
static Result |
ok(Path content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 200 OK result.
|
static Result |
ok(Path content,
FileMimeTypes fileMimeTypes)
Generates a 200 OK result.
|
static Result |
ok(Path content,
Optional<String> filename)
Generates a 200 OK result.
|
static Result |
ok(Path content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 200 OK result.
|
static Result |
ok(String content)
Generates a 200 OK result.
|
static Result |
ok(String content,
String charset)
Generates a 200 OK result.
|
static StatusHeader |
paymentRequired()
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(byte[] content)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(play.twirl.api.Content content)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(play.twirl.api.Content content,
String charset)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(File content)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(File content,
boolean inline)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(File content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(File content,
boolean inline,
Optional<String> filename)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(File content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(File content,
FileMimeTypes fileMimeTypes)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(File content,
Optional<String> filename)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(File content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(File content,
String filename)
Deprecated.
Deprecated as of 2.8.0. Use to
paymentRequired(File, Optional) . |
static Result |
paymentRequired(File content,
String filename,
FileMimeTypes fileMimeTypes)
Deprecated.
Deprecated as of 2.8.0. Use to
paymentRequired(File, Optional,
FileMimeTypes) . |
static Result |
paymentRequired(InputStream content)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(InputStream content,
long contentLength)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(com.fasterxml.jackson.databind.JsonNode content)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(com.fasterxml.jackson.databind.JsonNode content,
com.fasterxml.jackson.core.JsonEncoding encoding)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(Path content)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(Path content,
boolean inline)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(Path content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(Path content,
boolean inline,
Optional<String> filename)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(Path content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(Path content,
FileMimeTypes fileMimeTypes)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(Path content,
Optional<String> filename)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(Path content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(String content)
Generates a 402 Payment Required result.
|
static Result |
paymentRequired(String content,
String charset)
Generates a 402 Payment Required result.
|
static Result |
permanentRedirect(Call call)
Generates a 308 Permanent Redirect result.
|
static Result |
permanentRedirect(String url)
Generates a 308 Permanent Redirect result.
|
static StatusHeader |
preconditionRequired()
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(byte[] content)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(play.twirl.api.Content content)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(play.twirl.api.Content content,
String charset)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(File content)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(File content,
boolean inline)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(File content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(File content,
boolean inline,
Optional<String> filename)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(File content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(File content,
FileMimeTypes fileMimeTypes)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(File content,
Optional<String> filename)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(File content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(File content,
String filename)
Deprecated.
Deprecated as of 2.8.0. Use to
preconditionRequired(File, Optional) . |
static Result |
preconditionRequired(File content,
String filename,
FileMimeTypes fileMimeTypes)
Deprecated.
Deprecated as of 2.8.0. Use to
preconditionRequired(File, Optional,
FileMimeTypes) . |
static Result |
preconditionRequired(InputStream content)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(InputStream content,
long contentLength)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(com.fasterxml.jackson.databind.JsonNode content)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(com.fasterxml.jackson.databind.JsonNode content,
com.fasterxml.jackson.core.JsonEncoding encoding)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(Path content)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(Path content,
boolean inline)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(Path content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(Path content,
boolean inline,
Optional<String> filename)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(Path content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(Path content,
FileMimeTypes fileMimeTypes)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(Path content,
Optional<String> filename)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(Path content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(String content)
Generates a 428 Precondition Required result.
|
static Result |
preconditionRequired(String content,
String charset)
Generates a 428 Precondition Required result.
|
static Result |
redirect(Call call)
Generates a 303 See Other result.
|
static Result |
redirect(String url)
Generates a 303 See Other result.
|
static Result |
redirect(String url,
Map<String,List<String>> queryStringParams)
Generates a 303 See Other result.
|
static StatusHeader |
requestHeaderFieldsTooLarge()
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(byte[] content)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(play.twirl.api.Content content)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(play.twirl.api.Content content,
String charset)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(File content)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(File content,
boolean inline)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(File content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(File content,
boolean inline,
Optional<String> filename)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(File content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(File content,
FileMimeTypes fileMimeTypes)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(File content,
Optional<String> filename)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(File content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(File content,
String filename)
Deprecated.
Deprecated as of 2.8.0. Use to
requestHeaderFieldsTooLarge(File,
Optional) . |
static Result |
requestHeaderFieldsTooLarge(File content,
String filename,
FileMimeTypes fileMimeTypes)
Deprecated.
Deprecated as of 2.8.0. Use to
requestHeaderFieldsTooLarge(File, Optional,
FileMimeTypes) . |
static Result |
requestHeaderFieldsTooLarge(InputStream content)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(InputStream content,
long contentLength)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(com.fasterxml.jackson.databind.JsonNode content)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(com.fasterxml.jackson.databind.JsonNode content,
com.fasterxml.jackson.core.JsonEncoding encoding)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(Path content)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(Path content,
boolean inline)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(Path content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(Path content,
boolean inline,
Optional<String> filename)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(Path content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(Path content,
FileMimeTypes fileMimeTypes)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(Path content,
Optional<String> filename)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(Path content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(String content)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
requestHeaderFieldsTooLarge(String content,
String charset)
Generates a 431 Request Header Fields Too Large result.
|
static Result |
seeOther(Call call)
Generates a 303 See Other result.
|
static Result |
seeOther(String url)
Generates a 303 See Other result.
|
static StatusHeader |
status(int status)
Generates a simple result.
|
static Result |
status(int status,
byte[] content)
Generates a simple result with byte-array content.
|
static Result |
status(int status,
akka.util.ByteString content)
Generates a simple result.
|
static Result |
status(int status,
play.twirl.api.Content content)
Generates a simple result.
|
static Result |
status(int status,
play.twirl.api.Content content,
String charset)
Generates a simple result.
|
static Result |
status(int status,
File content)
Generates a result with file contents.
|
static Result |
status(int status,
File content,
boolean inline)
Generates a result with file content.
|
static Result |
status(int status,
File content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a result with file content.
|
static Result |
status(int status,
File content,
boolean inline,
Optional<String> fileName)
Generates a result.
|
static Result |
status(int status,
File content,
boolean inline,
Optional<String> fileName,
FileMimeTypes fileMimeTypes)
Generates a result.
|
static Result |
status(int status,
File content,
FileMimeTypes fileMimeTypes)
Generates a result with file contents.
|
static Result |
status(int status,
File content,
Optional<String> fileName)
Generates a result.
|
static Result |
status(int status,
File content,
Optional<String> fileName,
FileMimeTypes fileMimeTypes)
Generates a result.
|
static Result |
status(int status,
File content,
String fileName)
Deprecated.
Deprecated as of 2.8.0. Use to
status(int, File, Optional) . |
static Result |
status(int status,
File content,
String fileName,
FileMimeTypes fileMimeTypes)
Deprecated.
Deprecated as of 2.8.0. Use to
status(int, File, Optional, FileMimeTypes) . |
static Result |
status(int status,
InputStream content)
Generates a chunked result.
|
static Result |
status(int status,
InputStream content,
long contentLength)
Generates a chunked result.
|
static Result |
status(int status,
com.fasterxml.jackson.databind.JsonNode content)
Generates a simple result with json content and UTF8 encoding.
|
static Result |
status(int status,
com.fasterxml.jackson.databind.JsonNode content,
com.fasterxml.jackson.core.JsonEncoding encoding)
Generates a simple result with json content.
|
static Result |
status(int status,
Path content)
Generates a result with path contents.
|
static Result |
status(int status,
Path content,
boolean inline)
Generates a result with path content.
|
static Result |
status(int status,
Path content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a result with path content.
|
static Result |
status(int status,
Path content,
boolean inline,
Optional<String> fileName)
Generates a result.
|
static Result |
status(int status,
Path content,
boolean inline,
Optional<String> fileName,
FileMimeTypes fileMimeTypes)
Generates a result.
|
static Result |
status(int status,
Path content,
FileMimeTypes fileMimeTypes)
Generates a result with path contents.
|
static Result |
status(int status,
Path content,
Optional<String> fileName)
Generates a result.
|
static Result |
status(int status,
Path content,
Optional<String> fileName,
FileMimeTypes fileMimeTypes)
Generates a result.
|
static Result |
status(int status,
String content)
Generates a simple result.
|
static Result |
status(int status,
String content,
String charset)
Generates a simple result.
|
static Result |
temporaryRedirect(Call call)
Generates a 307 Temporary Redirect result.
|
static Result |
temporaryRedirect(String url)
Generates a 307 Temporary Redirect result.
|
static StatusHeader |
tooManyRequests()
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(byte[] content)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(play.twirl.api.Content content)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(play.twirl.api.Content content,
String charset)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(File content)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(File content,
boolean inline)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(File content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(File content,
boolean inline,
Optional<String> filename)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(File content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(File content,
FileMimeTypes fileMimeTypes)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(File content,
Optional<String> filename)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(File content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(File content,
String filename)
Deprecated.
Deprecated as of 2.8.0. Use to
tooManyRequests(File, Optional) . |
static Result |
tooManyRequests(File content,
String filename,
FileMimeTypes fileMimeTypes)
Deprecated.
Deprecated as of 2.8.0. Use to
tooManyRequests(File, Optional,
FileMimeTypes) . |
static Result |
tooManyRequests(InputStream content)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(InputStream content,
long contentLength)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(com.fasterxml.jackson.databind.JsonNode content)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(com.fasterxml.jackson.databind.JsonNode content,
com.fasterxml.jackson.core.JsonEncoding encoding)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(Path content)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(Path content,
boolean inline)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(Path content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(Path content,
boolean inline,
Optional<String> filename)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(Path content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(Path content,
FileMimeTypes fileMimeTypes)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(Path content,
Optional<String> filename)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(Path content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(String content)
Generates a 429 Too Many Requests result.
|
static Result |
tooManyRequests(String content,
String charset)
Generates a 429 Too Many Requests result.
|
static StatusHeader |
unauthorized()
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(byte[] content)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(play.twirl.api.Content content)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(play.twirl.api.Content content,
String charset)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(File content)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(File content,
boolean inline)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(File content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(File content,
boolean inline,
Optional<String> filename)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(File content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(File content,
FileMimeTypes fileMimeTypes)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(File content,
Optional<String> filename)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(File content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(File content,
String filename)
Deprecated.
Deprecated as of 2.8.0. Use to
unauthorized(File, Optional) . |
static Result |
unauthorized(File content,
String filename,
FileMimeTypes fileMimeTypes)
Deprecated.
Deprecated as of 2.8.0. Use to
unauthorized(File, Optional,
FileMimeTypes) . |
static Result |
unauthorized(InputStream content)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(InputStream content,
long contentLength)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(com.fasterxml.jackson.databind.JsonNode content)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(com.fasterxml.jackson.databind.JsonNode content,
com.fasterxml.jackson.core.JsonEncoding encoding)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(Path content)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(Path content,
boolean inline)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(Path content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(Path content,
boolean inline,
Optional<String> filename)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(Path content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(Path content,
FileMimeTypes fileMimeTypes)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(Path content,
Optional<String> filename)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(Path content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(String content)
Generates a 401 Unauthorized result.
|
static Result |
unauthorized(String content,
String charset)
Generates a 401 Unauthorized result.
|
static StatusHeader |
unsupportedMediaType()
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(byte[] content)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(play.twirl.api.Content content)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(play.twirl.api.Content content,
String charset)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(File content)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(File content,
boolean inline)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(File content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(File content,
boolean inline,
Optional<String> filename)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(File content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(File content,
FileMimeTypes fileMimeTypes)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(File content,
Optional<String> filename)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(File content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(File content,
String filename)
Deprecated.
Deprecated as of 2.8.0. Use to
unsupportedMediaType(File, Optional) . |
static Result |
unsupportedMediaType(File content,
String filename,
FileMimeTypes fileMimeTypes)
Deprecated.
Deprecated as of 2.8.0. Use to
unsupportedMediaType(File, Optional,
FileMimeTypes) . |
static Result |
unsupportedMediaType(InputStream content)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(InputStream content,
long contentLength)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(com.fasterxml.jackson.databind.JsonNode content)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(com.fasterxml.jackson.databind.JsonNode content,
com.fasterxml.jackson.core.JsonEncoding encoding)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(Path content)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(Path content,
boolean inline)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(Path content,
boolean inline,
FileMimeTypes fileMimeTypes)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(Path content,
boolean inline,
Optional<String> filename)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(Path content,
boolean inline,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(Path content,
FileMimeTypes fileMimeTypes)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(Path content,
Optional<String> filename)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(Path content,
Optional<String> filename,
FileMimeTypes fileMimeTypes)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(String content)
Generates a 415 Unsupported Media Type result.
|
static Result |
unsupportedMediaType(String content,
String charset)
Generates a 415 Unsupported Media Type result.
|
public static Map<String,String> contentDispositionHeader(boolean inline, Optional<String> name)
Content-Disposition
header."Content-Disposition: inline"
. Therefore if the header generated by this method ends up being
exactly that header (when passing inline = true
and Optional.empty()
as name
), an empty Map ist returned.inline
- If the content should be rendered inline or as attachment.name
- The name of the resource, usually displayed in a file download dialog.Content-Disposition
header entry or an empty map if explained
conditions apply.public static StatusHeader status(int status)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)public static Result status(int status, play.twirl.api.Content content)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the result's body contentpublic static Result status(int status, play.twirl.api.Content content, String charset)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the result's body contentcharset
- the charset to encode the content with (e.g. "UTF-8")public static Result status(int status, String content)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the result's body content. It will be encoded as a UTF-8 string.public static Result status(int status, String content, String charset)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the result's body content.charset
- the charset in which to encode the content (e.g. "UTF-8")public static Result status(int status, com.fasterxml.jackson.databind.JsonNode content)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the result's body content as a play-json objectpublic static Result status(int status, com.fasterxml.jackson.databind.JsonNode content, com.fasterxml.jackson.core.JsonEncoding encoding)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the result's body content, as a play-json objectencoding
- the encoding into which the json should be encodedpublic static Result status(int status, byte[] content)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the result's body content, as a byte arraypublic static Result status(int status, akka.util.ByteString content)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the result's body contentpublic static Result status(int status, InputStream content)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the input stream containing data to chunk overpublic static Result status(int status, InputStream content, long contentLength)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the input stream containing data to chunk overcontentLength
- the length of the provided content in bytes.public static Result status(int status, File content)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the file to sendpublic static Result status(int status, File content, FileMimeTypes fileMimeTypes)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the file to sendfileMimeTypes
- Used for file type mapping.public static Result status(int status, File content, boolean inline)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the file to sendinline
- true
to have it sent with inline Content-Disposition.public static Result status(int status, File content, boolean inline, FileMimeTypes fileMimeTypes)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the file to sendinline
- true
to have it sent with inline Content-Disposition.fileMimeTypes
- Used for file type mapping.@Deprecated public static Result status(int status, File content, String fileName)
status(int, File, Optional)
.status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the file to sendfileName
- the name that the client should receive this file aspublic static Result status(int status, File content, Optional<String> fileName)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the file to sendfileName
- the name that the client should receive this file as@Deprecated public static Result status(int status, File content, String fileName, FileMimeTypes fileMimeTypes)
status(int, File, Optional, FileMimeTypes)
.status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the file to sendfileName
- the name that the client should receive this file asfileMimeTypes
- Used for file type mapping.public static Result status(int status, File content, Optional<String> fileName, FileMimeTypes fileMimeTypes)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the file to sendfileName
- the name that the client should receive this file asfileMimeTypes
- Used for file type mapping.public static Result status(int status, File content, boolean inline, Optional<String> fileName)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the file to sendinline
- true
to have it sent with inline Content-Disposition.fileName
- the name that the client should receive this file aspublic static Result status(int status, File content, boolean inline, Optional<String> fileName, FileMimeTypes fileMimeTypes)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the file to sendinline
- true
to have it sent with inline Content-Disposition.fileName
- the name that the client should receive this file asfileMimeTypes
- Used for file type mapping.public static Result status(int status, Path content)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the path to sendpublic static Result status(int status, Path content, FileMimeTypes fileMimeTypes)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the path to sendfileMimeTypes
- Used for file type mapping.public static Result status(int status, Path content, boolean inline)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the path to sendinline
- true
to have it sent with inline Content-Disposition.public static Result status(int status, Path content, boolean inline, FileMimeTypes fileMimeTypes)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the path to sendinline
- true
to have it sent with inline Content-Disposition.fileMimeTypes
- Used for file type mapping.public static Result status(int status, Path content, Optional<String> fileName)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the path to sendfileName
- the name that the client should receive this path aspublic static Result status(int status, Path content, Optional<String> fileName, FileMimeTypes fileMimeTypes)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the path to sendfileName
- the name that the client should receive this path asfileMimeTypes
- Used for file type mapping.public static Result status(int status, Path content, boolean inline, Optional<String> fileName)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the path to sendinline
- true
to have it sent with inline Content-Disposition.fileName
- the name that the client should receive this path aspublic static Result status(int status, Path content, boolean inline, Optional<String> fileName, FileMimeTypes fileMimeTypes)
status
- the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)content
- the path to sendinline
- true
to have it sent with inline Content-Disposition.fileName
- the name that the client should receive this path asfileMimeTypes
- Used for file type mapping.public static StatusHeader noContent()
public static StatusHeader ok()
public static Result ok(play.twirl.api.Content content)
content
- the HTTP response bodypublic static Result ok(play.twirl.api.Content content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result ok(String content)
content
- HTTP response body, encoded as a UTF-8 stringpublic static Result ok(String content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result ok(com.fasterxml.jackson.databind.JsonNode content)
content
- the result's body content as a play-json object. It will be encoded as a UTF-8
string.public static Result ok(com.fasterxml.jackson.databind.JsonNode content, com.fasterxml.jackson.core.JsonEncoding encoding)
content
- the result's body content as a play-json objectencoding
- the encoding into which the json should be encodedpublic static Result ok(byte[] content)
content
- the result's body contentpublic static Result ok(InputStream content)
content
- the input stream containing data to chunk overpublic static Result ok(InputStream content, long contentLength)
content
- the input stream containing data to chunk overcontentLength
- the length of the provided content in bytes.public static Result ok(File content)
content
- The file to send.public static Result ok(File content, FileMimeTypes fileMimeTypes)
content
- The file to send.fileMimeTypes
- Used for file type mapping.public static Result ok(File content, boolean inline)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result ok(File content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.@Deprecated public static Result ok(File content, String filename)
ok(File, Optional)
.content
- The file to send.filename
- The name to send the file as.public static Result ok(File content, Optional<String> filename)
content
- The file to send.filename
- The name to send the file as.@Deprecated public static Result ok(File content, String filename, FileMimeTypes fileMimeTypes)
ok(File, Optional, FileMimeTypes)
.content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result ok(File content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result ok(File content, boolean inline, Optional<String> filename)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result ok(File content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result ok(Path content)
content
- The path to send.public static Result ok(Path content, FileMimeTypes fileMimeTypes)
content
- The path to send.fileMimeTypes
- Used for file type mapping.public static Result ok(Path content, boolean inline)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result ok(Path content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.public static Result ok(Path content, Optional<String> filename)
content
- The path to send.filename
- The name to send the file as.public static Result ok(Path content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result ok(Path content, boolean inline, Optional<String> filename)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result ok(Path content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static StatusHeader created()
public static Result created(play.twirl.api.Content content)
content
- the HTTP response bodypublic static Result created(play.twirl.api.Content content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result created(String content)
content
- HTTP response body, encoded as a UTF-8 stringpublic static Result created(String content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result created(com.fasterxml.jackson.databind.JsonNode content)
content
- the result's body content as a play-json object. It will be encoded as a UTF-8
string.public static Result created(com.fasterxml.jackson.databind.JsonNode content, com.fasterxml.jackson.core.JsonEncoding encoding)
content
- the result's body content as a play-json objectencoding
- the encoding into which the json should be encodedpublic static Result created(byte[] content)
content
- the result's body contentpublic static Result created(InputStream content)
content
- the input stream containing data to chunk overpublic static Result created(InputStream content, long contentLength)
content
- the input stream containing data to chunk overcontentLength
- the length of the provided content in bytes.public static Result created(File content)
content
- The file to send.public static Result created(File content, FileMimeTypes fileMimeTypes)
content
- The file to send.fileMimeTypes
- Used for file type mapping.public static Result created(File content, boolean inline)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result created(File content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.@Deprecated public static Result created(File content, String filename)
created(File, Optional)
.content
- The file to send.filename
- The name to send the file as.public static Result created(File content, Optional<String> filename)
content
- The file to send.filename
- The name to send the file as.@Deprecated public static Result created(File content, String filename, FileMimeTypes fileMimeTypes)
created(File, Optional, FileMimeTypes)
.content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result created(File content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result created(File content, boolean inline, Optional<String> filename)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result created(File content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result created(Path content)
content
- The path to send.public static Result created(Path content, FileMimeTypes fileMimeTypes)
content
- The path to send.fileMimeTypes
- Used for file type mapping.public static Result created(Path content, boolean inline)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result created(Path content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.public static Result created(Path content, Optional<String> filename)
content
- The path to send.filename
- The name to send the file as.public static Result created(Path content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result created(Path content, boolean inline, Optional<String> filename)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result created(Path content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static StatusHeader badRequest()
public static Result badRequest(play.twirl.api.Content content)
content
- the HTTP response bodypublic static Result badRequest(play.twirl.api.Content content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result badRequest(String content)
content
- HTTP response body, encoded as a UTF-8 stringpublic static Result badRequest(String content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result badRequest(com.fasterxml.jackson.databind.JsonNode content)
content
- the result's body content as a play-json object. It will be encoded as a UTF-8
string.public static Result badRequest(com.fasterxml.jackson.databind.JsonNode content, com.fasterxml.jackson.core.JsonEncoding encoding)
content
- the result's body content as a play-json objectencoding
- the encoding into which the json should be encodedpublic static Result badRequest(byte[] content)
content
- the result's body contentpublic static Result badRequest(InputStream content)
content
- the input stream containing data to chunk overpublic static Result badRequest(InputStream content, long contentLength)
content
- the input stream containing data to chunk overcontentLength
- the length of the provided content in bytes.public static Result badRequest(File content)
content
- The file to send.public static Result badRequest(File content, FileMimeTypes fileMimeTypes)
content
- The file to send.fileMimeTypes
- Used for file type mapping.public static Result badRequest(File content, boolean inline)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result badRequest(File content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.@Deprecated public static Result badRequest(File content, String filename)
badRequest(File, Optional)
.content
- The file to send.filename
- The name to send the file as.public static Result badRequest(File content, Optional<String> filename)
content
- The file to send.filename
- The name to send the file as.@Deprecated public static Result badRequest(File content, String filename, FileMimeTypes fileMimeTypes)
badRequest(File, Optional, FileMimeTypes)
.content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result badRequest(File content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result badRequest(File content, boolean inline, Optional<String> filename)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result badRequest(File content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result badRequest(Path content)
content
- The path to send.public static Result badRequest(Path content, FileMimeTypes fileMimeTypes)
content
- The path to send.fileMimeTypes
- Used for file type mapping.public static Result badRequest(Path content, boolean inline)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result badRequest(Path content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.public static Result badRequest(Path content, Optional<String> filename)
content
- The path to send.filename
- The name to send the file as.public static Result badRequest(Path content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result badRequest(Path content, boolean inline, Optional<String> filename)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result badRequest(Path content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static StatusHeader unauthorized()
public static Result unauthorized(play.twirl.api.Content content)
content
- the HTTP response bodypublic static Result unauthorized(play.twirl.api.Content content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result unauthorized(String content)
content
- HTTP response body, encoded as a UTF-8 stringpublic static Result unauthorized(String content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result unauthorized(com.fasterxml.jackson.databind.JsonNode content)
content
- the result's body content as a play-json object. It will be encoded as a UTF-8
string.public static Result unauthorized(com.fasterxml.jackson.databind.JsonNode content, com.fasterxml.jackson.core.JsonEncoding encoding)
content
- the result's body content as a play-json objectencoding
- the encoding into which the json should be encodedpublic static Result unauthorized(byte[] content)
content
- the result's body contentpublic static Result unauthorized(InputStream content)
content
- the input stream containing data to chunk overpublic static Result unauthorized(InputStream content, long contentLength)
content
- the input stream containing data to chunk overcontentLength
- the length of the provided content in bytes.public static Result unauthorized(File content)
content
- The file to send.public static Result unauthorized(File content, FileMimeTypes fileMimeTypes)
content
- The file to send.fileMimeTypes
- Used for file type mapping.public static Result unauthorized(File content, boolean inline)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result unauthorized(File content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.@Deprecated public static Result unauthorized(File content, String filename)
unauthorized(File, Optional)
.content
- The file to send.filename
- The name to send the file as.public static Result unauthorized(File content, Optional<String> filename)
content
- The file to send.filename
- The name to send the file as.@Deprecated public static Result unauthorized(File content, String filename, FileMimeTypes fileMimeTypes)
unauthorized(File, Optional,
FileMimeTypes)
.content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result unauthorized(File content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result unauthorized(File content, boolean inline, Optional<String> filename)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result unauthorized(File content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result unauthorized(Path content)
content
- The path to send.public static Result unauthorized(Path content, FileMimeTypes fileMimeTypes)
content
- The path to send.fileMimeTypes
- Used for file type mapping.public static Result unauthorized(Path content, boolean inline)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result unauthorized(Path content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.public static Result unauthorized(Path content, Optional<String> filename)
content
- The path to send.filename
- The name to send the file as.public static Result unauthorized(Path content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result unauthorized(Path content, boolean inline, Optional<String> filename)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result unauthorized(Path content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static StatusHeader paymentRequired()
public static Result paymentRequired(play.twirl.api.Content content)
content
- the HTTP response bodypublic static Result paymentRequired(play.twirl.api.Content content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result paymentRequired(String content)
content
- HTTP response body, encoded as a UTF-8 stringpublic static Result paymentRequired(String content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result paymentRequired(com.fasterxml.jackson.databind.JsonNode content)
content
- the result's body content as a play-json object. It will be encoded as a UTF-8
string.public static Result paymentRequired(com.fasterxml.jackson.databind.JsonNode content, com.fasterxml.jackson.core.JsonEncoding encoding)
content
- the result's body content as a play-json objectencoding
- the encoding into which the json should be encodedpublic static Result paymentRequired(byte[] content)
content
- the result's body contentpublic static Result paymentRequired(InputStream content)
content
- the input stream containing data to chunk overpublic static Result paymentRequired(InputStream content, long contentLength)
content
- the input stream containing data to chunk overcontentLength
- the length of the provided content in bytes.public static Result paymentRequired(File content)
content
- The file to send.public static Result paymentRequired(File content, FileMimeTypes fileMimeTypes)
content
- The file to send.fileMimeTypes
- Used for file type mapping.public static Result paymentRequired(File content, boolean inline)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result paymentRequired(File content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.@Deprecated public static Result paymentRequired(File content, String filename)
paymentRequired(File, Optional)
.content
- The file to send.filename
- The name to send the file as.public static Result paymentRequired(File content, Optional<String> filename)
content
- The file to send.filename
- The name to send the file as.@Deprecated public static Result paymentRequired(File content, String filename, FileMimeTypes fileMimeTypes)
paymentRequired(File, Optional,
FileMimeTypes)
.content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result paymentRequired(File content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result paymentRequired(File content, boolean inline, Optional<String> filename)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result paymentRequired(File content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result paymentRequired(Path content)
content
- The path to send.public static Result paymentRequired(Path content, FileMimeTypes fileMimeTypes)
content
- The path to send.fileMimeTypes
- Used for file type mapping.public static Result paymentRequired(Path content, boolean inline)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result paymentRequired(Path content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.public static Result paymentRequired(Path content, Optional<String> filename)
content
- The path to send.filename
- The name to send the file as.public static Result paymentRequired(Path content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result paymentRequired(Path content, boolean inline, Optional<String> filename)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result paymentRequired(Path content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static StatusHeader forbidden()
public static Result forbidden(play.twirl.api.Content content)
content
- the HTTP response bodypublic static Result forbidden(play.twirl.api.Content content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result forbidden(String content)
content
- HTTP response body, encoded as a UTF-8 stringpublic static Result forbidden(String content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result forbidden(com.fasterxml.jackson.databind.JsonNode content)
content
- the result's body content as a play-json object. It will be encoded as a UTF-8
string.public static Result forbidden(com.fasterxml.jackson.databind.JsonNode content, com.fasterxml.jackson.core.JsonEncoding encoding)
content
- the result's body content as a play-json objectencoding
- the encoding into which the json should be encodedpublic static Result forbidden(byte[] content)
content
- the result's body contentpublic static Result forbidden(InputStream content)
content
- the input stream containing data to chunk overpublic static Result forbidden(InputStream content, long contentLength)
content
- the input stream containing data to chunk overcontentLength
- the length of the provided content in bytes.public static Result forbidden(File content)
content
- The file to send.public static Result forbidden(File content, FileMimeTypes fileMimeTypes)
content
- The file to send.fileMimeTypes
- Used for file type mapping.public static Result forbidden(File content, boolean inline)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result forbidden(File content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.@Deprecated public static Result forbidden(File content, String filename)
forbidden(File, Optional)
.content
- The file to send.filename
- The name to send the file as.public static Result forbidden(File content, Optional<String> filename)
content
- The file to send.filename
- The name to send the file as.@Deprecated public static Result forbidden(File content, String filename, FileMimeTypes fileMimeTypes)
forbidden(File, Optional, FileMimeTypes)
.content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result forbidden(File content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result forbidden(File content, boolean inline, Optional<String> filename)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result forbidden(File content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result forbidden(Path content)
content
- The path to send.public static Result forbidden(Path content, FileMimeTypes fileMimeTypes)
content
- The path to send.fileMimeTypes
- Used for file type mapping.public static Result forbidden(Path content, boolean inline)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result forbidden(Path content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.public static Result forbidden(Path content, Optional<String> filename)
content
- The path to send.filename
- The name to send the file as.public static Result forbidden(Path content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result forbidden(Path content, boolean inline, Optional<String> filename)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result forbidden(Path content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static StatusHeader notFound()
public static Result notFound(play.twirl.api.Content content)
content
- the HTTP response bodypublic static Result notFound(play.twirl.api.Content content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result notFound(String content)
content
- HTTP response body, encoded as a UTF-8 stringpublic static Result notFound(String content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result notFound(com.fasterxml.jackson.databind.JsonNode content)
content
- the result's body content as a play-json object. It will be encoded as a UTF-8
string.public static Result notFound(com.fasterxml.jackson.databind.JsonNode content, com.fasterxml.jackson.core.JsonEncoding encoding)
content
- the result's body content as a play-json objectencoding
- the encoding into which the json should be encodedpublic static Result notFound(byte[] content)
content
- the result's body contentpublic static Result notFound(InputStream content)
content
- the input stream containing data to chunk overpublic static Result notFound(InputStream content, long contentLength)
content
- the input stream containing data to chunk overcontentLength
- the length of the provided content in bytes.public static Result notFound(File content)
content
- The file to send.public static Result notFound(File content, FileMimeTypes fileMimeTypes)
content
- The file to send.fileMimeTypes
- Used for file type mapping.public static Result notFound(File content, boolean inline)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result notFound(File content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.@Deprecated public static Result notFound(File content, String filename)
notFound(File, Optional)
.content
- The file to send.filename
- The name to send the file as.public static Result notFound(File content, Optional<String> filename)
content
- The file to send.filename
- The name to send the file as.@Deprecated public static Result notFound(File content, String filename, FileMimeTypes fileMimeTypes)
notFound(File, Optional, FileMimeTypes)
.content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result notFound(File content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result notFound(File content, boolean inline, Optional<String> filename)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result notFound(File content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result notFound(Path content)
content
- The path to send.public static Result notFound(Path content, FileMimeTypes fileMimeTypes)
content
- The path to send.fileMimeTypes
- Used for file type mapping.public static Result notFound(Path content, boolean inline)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result notFound(Path content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.public static Result notFound(Path content, Optional<String> filename)
content
- The path to send.filename
- The name to send the file as.public static Result notFound(Path content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result notFound(Path content, boolean inline, Optional<String> filename)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result notFound(Path content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static StatusHeader notAcceptable()
public static Result notAcceptable(play.twirl.api.Content content)
content
- the HTTP response bodypublic static Result notAcceptable(play.twirl.api.Content content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result notAcceptable(String content)
content
- HTTP response body, encoded as a UTF-8 stringpublic static Result notAcceptable(String content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result notAcceptable(com.fasterxml.jackson.databind.JsonNode content)
content
- the result's body content as a play-json object. It will be encoded as a UTF-8
string.public static Result notAcceptable(com.fasterxml.jackson.databind.JsonNode content, com.fasterxml.jackson.core.JsonEncoding encoding)
content
- the result's body content as a play-json objectencoding
- the encoding into which the json should be encodedpublic static Result notAcceptable(byte[] content)
content
- the result's body contentpublic static Result notAcceptable(InputStream content)
content
- the input stream containing data to chunk overpublic static Result notAcceptable(InputStream content, long contentLength)
content
- the input stream containing data to chunk overcontentLength
- the length of the provided content in bytes.public static Result notAcceptable(File content)
content
- The file to send.public static Result notAcceptable(File content, FileMimeTypes fileMimeTypes)
content
- The file to send.fileMimeTypes
- Used for file type mapping.public static Result notAcceptable(File content, boolean inline)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result notAcceptable(File content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.@Deprecated public static Result notAcceptable(File content, String filename)
notAcceptable(File, Optional)
.content
- The file to send.filename
- The name to send the file as.public static Result notAcceptable(File content, Optional<String> filename)
content
- The file to send.filename
- The name to send the file as.@Deprecated public static Result notAcceptable(File content, String filename, FileMimeTypes fileMimeTypes)
notAcceptable(File, Optional,
FileMimeTypes)
.content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result notAcceptable(File content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result notAcceptable(File content, boolean inline, Optional<String> filename)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result notAcceptable(File content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result notAcceptable(Path content)
content
- The path to send.public static Result notAcceptable(Path content, FileMimeTypes fileMimeTypes)
content
- The path to send.fileMimeTypes
- Used for file type mapping.public static Result notAcceptable(Path content, boolean inline)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result notAcceptable(Path content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.public static Result notAcceptable(Path content, Optional<String> filename)
content
- The path to send.filename
- The name to send the file as.public static Result notAcceptable(Path content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result notAcceptable(Path content, boolean inline, Optional<String> filename)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result notAcceptable(Path content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static StatusHeader unsupportedMediaType()
public static Result unsupportedMediaType(play.twirl.api.Content content)
content
- the HTTP response bodypublic static Result unsupportedMediaType(play.twirl.api.Content content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result unsupportedMediaType(String content)
content
- HTTP response body, encoded as a UTF-8 stringpublic static Result unsupportedMediaType(String content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result unsupportedMediaType(com.fasterxml.jackson.databind.JsonNode content)
content
- the result's body content as a play-json object. It will be encoded as a UTF-8
string.public static Result unsupportedMediaType(com.fasterxml.jackson.databind.JsonNode content, com.fasterxml.jackson.core.JsonEncoding encoding)
content
- the result's body content as a play-json objectencoding
- the encoding into which the json should be encodedpublic static Result unsupportedMediaType(byte[] content)
content
- the result's body contentpublic static Result unsupportedMediaType(InputStream content)
content
- the input stream containing data to chunk overpublic static Result unsupportedMediaType(InputStream content, long contentLength)
content
- the input stream containing data to chunk overcontentLength
- the length of the provided content in bytes.public static Result unsupportedMediaType(File content)
content
- The file to send.public static Result unsupportedMediaType(File content, FileMimeTypes fileMimeTypes)
content
- The file to send.fileMimeTypes
- Used for file type mapping.public static Result unsupportedMediaType(File content, boolean inline)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result unsupportedMediaType(File content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.@Deprecated public static Result unsupportedMediaType(File content, String filename)
unsupportedMediaType(File, Optional)
.content
- The file to send.filename
- The name to send the file as.public static Result unsupportedMediaType(File content, Optional<String> filename)
content
- The file to send.filename
- The name to send the file as.@Deprecated public static Result unsupportedMediaType(File content, String filename, FileMimeTypes fileMimeTypes)
unsupportedMediaType(File, Optional,
FileMimeTypes)
.content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result unsupportedMediaType(File content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result unsupportedMediaType(File content, boolean inline, Optional<String> filename)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result unsupportedMediaType(File content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result unsupportedMediaType(Path content)
content
- The path to send.public static Result unsupportedMediaType(Path content, FileMimeTypes fileMimeTypes)
content
- The path to send.fileMimeTypes
- Used for file type mapping.public static Result unsupportedMediaType(Path content, boolean inline)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result unsupportedMediaType(Path content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.public static Result unsupportedMediaType(Path content, Optional<String> filename)
content
- The path to send.filename
- The name to send the file as.public static Result unsupportedMediaType(Path content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result unsupportedMediaType(Path content, boolean inline, Optional<String> filename)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result unsupportedMediaType(Path content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static StatusHeader preconditionRequired()
public static Result preconditionRequired(play.twirl.api.Content content)
content
- the HTTP response bodypublic static Result preconditionRequired(play.twirl.api.Content content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result preconditionRequired(String content)
content
- HTTP response body, encoded as a UTF-8 stringpublic static Result preconditionRequired(String content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result preconditionRequired(com.fasterxml.jackson.databind.JsonNode content)
content
- the result's body content as a play-json object. It will be encoded as a UTF-8
string.public static Result preconditionRequired(com.fasterxml.jackson.databind.JsonNode content, com.fasterxml.jackson.core.JsonEncoding encoding)
content
- the result's body content as a play-json objectencoding
- the encoding into which the json should be encodedpublic static Result preconditionRequired(byte[] content)
content
- the result's body contentpublic static Result preconditionRequired(InputStream content)
content
- the input stream containing data to chunk overpublic static Result preconditionRequired(InputStream content, long contentLength)
content
- the input stream containing data to chunk overcontentLength
- the length of the provided content in bytes.public static Result preconditionRequired(File content)
content
- The file to send.public static Result preconditionRequired(File content, FileMimeTypes fileMimeTypes)
content
- The file to send.fileMimeTypes
- Used for file type mapping.public static Result preconditionRequired(File content, boolean inline)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result preconditionRequired(File content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.@Deprecated public static Result preconditionRequired(File content, String filename)
preconditionRequired(File, Optional)
.content
- The file to send.filename
- The name to send the file as.public static Result preconditionRequired(File content, Optional<String> filename)
content
- The file to send.filename
- The name to send the file as.@Deprecated public static Result preconditionRequired(File content, String filename, FileMimeTypes fileMimeTypes)
preconditionRequired(File, Optional,
FileMimeTypes)
.content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result preconditionRequired(File content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result preconditionRequired(File content, boolean inline, Optional<String> filename)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result preconditionRequired(File content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result preconditionRequired(Path content)
content
- The path to send.public static Result preconditionRequired(Path content, FileMimeTypes fileMimeTypes)
content
- The path to send.fileMimeTypes
- Used for file type mapping.public static Result preconditionRequired(Path content, boolean inline)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result preconditionRequired(Path content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.public static Result preconditionRequired(Path content, Optional<String> filename)
content
- The path to send.filename
- The name to send the file as.public static Result preconditionRequired(Path content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result preconditionRequired(Path content, boolean inline, Optional<String> filename)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result preconditionRequired(Path content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static StatusHeader tooManyRequests()
public static Result tooManyRequests(play.twirl.api.Content content)
content
- the HTTP response bodypublic static Result tooManyRequests(play.twirl.api.Content content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result tooManyRequests(String content)
content
- HTTP response body, encoded as a UTF-8 stringpublic static Result tooManyRequests(String content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result tooManyRequests(com.fasterxml.jackson.databind.JsonNode content)
content
- the result's body content as a play-json object. It will be encoded as a UTF-8
string.public static Result tooManyRequests(com.fasterxml.jackson.databind.JsonNode content, com.fasterxml.jackson.core.JsonEncoding encoding)
content
- the result's body content as a play-json objectencoding
- the encoding into which the json should be encodedpublic static Result tooManyRequests(byte[] content)
content
- the result's body contentpublic static Result tooManyRequests(InputStream content)
content
- the input stream containing data to chunk overpublic static Result tooManyRequests(InputStream content, long contentLength)
content
- the input stream containing data to chunk overcontentLength
- the length of the provided content in bytes.public static Result tooManyRequests(File content)
content
- The file to send.public static Result tooManyRequests(File content, FileMimeTypes fileMimeTypes)
content
- The file to send.fileMimeTypes
- Used for file type mapping.public static Result tooManyRequests(File content, boolean inline)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result tooManyRequests(File content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.@Deprecated public static Result tooManyRequests(File content, String filename)
tooManyRequests(File, Optional)
.content
- The file to send.filename
- The name to send the file as.public static Result tooManyRequests(File content, Optional<String> filename)
content
- The file to send.filename
- The name to send the file as.@Deprecated public static Result tooManyRequests(File content, String filename, FileMimeTypes fileMimeTypes)
tooManyRequests(File, Optional,
FileMimeTypes)
.content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result tooManyRequests(File content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result tooManyRequests(File content, boolean inline, Optional<String> filename)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result tooManyRequests(File content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result tooManyRequests(Path content)
content
- The path to send.public static Result tooManyRequests(Path content, FileMimeTypes fileMimeTypes)
content
- The path to send.fileMimeTypes
- Used for file type mapping.public static Result tooManyRequests(Path content, boolean inline)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result tooManyRequests(Path content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.public static Result tooManyRequests(Path content, Optional<String> filename)
content
- The path to send.filename
- The name to send the file as.public static Result tooManyRequests(Path content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result tooManyRequests(Path content, boolean inline, Optional<String> filename)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result tooManyRequests(Path content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static StatusHeader requestHeaderFieldsTooLarge()
public static Result requestHeaderFieldsTooLarge(play.twirl.api.Content content)
content
- the HTTP response bodypublic static Result requestHeaderFieldsTooLarge(play.twirl.api.Content content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result requestHeaderFieldsTooLarge(String content)
content
- HTTP response body, encoded as a UTF-8 stringpublic static Result requestHeaderFieldsTooLarge(String content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result requestHeaderFieldsTooLarge(com.fasterxml.jackson.databind.JsonNode content)
content
- the result's body content as a play-json object. It will be encoded as a UTF-8
string.public static Result requestHeaderFieldsTooLarge(com.fasterxml.jackson.databind.JsonNode content, com.fasterxml.jackson.core.JsonEncoding encoding)
content
- the result's body content as a play-json objectencoding
- the encoding into which the json should be encodedpublic static Result requestHeaderFieldsTooLarge(byte[] content)
content
- the result's body contentpublic static Result requestHeaderFieldsTooLarge(InputStream content)
content
- the input stream containing data to chunk overpublic static Result requestHeaderFieldsTooLarge(InputStream content, long contentLength)
content
- the input stream containing data to chunk overcontentLength
- the length of the provided content in bytes.public static Result requestHeaderFieldsTooLarge(File content)
content
- The file to send.public static Result requestHeaderFieldsTooLarge(File content, FileMimeTypes fileMimeTypes)
content
- The file to send.fileMimeTypes
- Used for file type mapping.public static Result requestHeaderFieldsTooLarge(File content, boolean inline)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result requestHeaderFieldsTooLarge(File content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.@Deprecated public static Result requestHeaderFieldsTooLarge(File content, String filename)
requestHeaderFieldsTooLarge(File,
Optional)
.content
- The file to send.filename
- The name to send the file as.public static Result requestHeaderFieldsTooLarge(File content, Optional<String> filename)
content
- The file to send.filename
- The name to send the file as.@Deprecated public static Result requestHeaderFieldsTooLarge(File content, String filename, FileMimeTypes fileMimeTypes)
requestHeaderFieldsTooLarge(File, Optional,
FileMimeTypes)
.content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result requestHeaderFieldsTooLarge(File content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result requestHeaderFieldsTooLarge(File content, boolean inline, Optional<String> filename)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result requestHeaderFieldsTooLarge(File content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result requestHeaderFieldsTooLarge(Path content)
content
- The path to send.public static Result requestHeaderFieldsTooLarge(Path content, FileMimeTypes fileMimeTypes)
content
- The path to send.fileMimeTypes
- Used for file type mapping.public static Result requestHeaderFieldsTooLarge(Path content, boolean inline)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result requestHeaderFieldsTooLarge(Path content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.public static Result requestHeaderFieldsTooLarge(Path content, Optional<String> filename)
content
- The path to send.filename
- The name to send the file as.public static Result requestHeaderFieldsTooLarge(Path content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result requestHeaderFieldsTooLarge(Path content, boolean inline, Optional<String> filename)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result requestHeaderFieldsTooLarge(Path content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static StatusHeader internalServerError()
public static Result internalServerError(play.twirl.api.Content content)
content
- the HTTP response bodypublic static Result internalServerError(play.twirl.api.Content content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result internalServerError(String content)
content
- HTTP response body, encoded as a UTF-8 stringpublic static Result internalServerError(String content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result internalServerError(com.fasterxml.jackson.databind.JsonNode content)
content
- the result's body content as a play-json object. It will be encoded as a UTF-8
string.public static Result internalServerError(com.fasterxml.jackson.databind.JsonNode content, com.fasterxml.jackson.core.JsonEncoding encoding)
content
- the result's body content as a play-json objectencoding
- the encoding into which the json should be encodedpublic static Result internalServerError(byte[] content)
content
- the result's body contentpublic static Result internalServerError(InputStream content)
content
- the input stream containing data to chunk overpublic static Result internalServerError(InputStream content, long contentLength)
content
- the input stream containing data to chunk overcontentLength
- the length of the provided content in bytes.public static Result internalServerError(File content)
content
- The file to send.public static Result internalServerError(File content, FileMimeTypes fileMimeTypes)
content
- The file to send.fileMimeTypes
- Used for file type mapping.public static Result internalServerError(File content, boolean inline)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result internalServerError(File content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.@Deprecated public static Result internalServerError(File content, String filename)
internalServerError(File, Optional)
.content
- The file to send.filename
- The name to send the file as.public static Result internalServerError(File content, Optional<String> filename)
content
- The file to send.filename
- The name to send the file as.@Deprecated public static Result internalServerError(File content, String filename, FileMimeTypes fileMimeTypes)
internalServerError(File, Optional,
FileMimeTypes)
.content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result internalServerError(File content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result internalServerError(File content, boolean inline, Optional<String> filename)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result internalServerError(File content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result internalServerError(Path content)
content
- The path to send.public static Result internalServerError(Path content, FileMimeTypes fileMimeTypes)
content
- The path to send.fileMimeTypes
- Used for file type mapping.public static Result internalServerError(Path content, boolean inline)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result internalServerError(Path content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.public static Result internalServerError(Path content, Optional<String> filename)
content
- The path to send.filename
- The name to send the file as.public static Result internalServerError(Path content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result internalServerError(Path content, boolean inline, Optional<String> filename)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result internalServerError(Path content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static StatusHeader networkAuthenticationRequired()
public static Result networkAuthenticationRequired(play.twirl.api.Content content)
content
- the HTTP response bodypublic static Result networkAuthenticationRequired(play.twirl.api.Content content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result networkAuthenticationRequired(String content)
content
- HTTP response body, encoded as a UTF-8 stringpublic static Result networkAuthenticationRequired(String content, String charset)
content
- the HTTP response bodycharset
- the charset into which the content should be encoded (e.g. "UTF-8")public static Result networkAuthenticationRequired(com.fasterxml.jackson.databind.JsonNode content)
content
- the result's body content as a play-json object. It will be encoded as a UTF-8
string.public static Result networkAuthenticationRequired(com.fasterxml.jackson.databind.JsonNode content, com.fasterxml.jackson.core.JsonEncoding encoding)
content
- the result's body content as a play-json objectencoding
- the encoding into which the json should be encodedpublic static Result networkAuthenticationRequired(byte[] content)
content
- the result's body contentpublic static Result networkAuthenticationRequired(InputStream content)
content
- the input stream containing data to chunk overpublic static Result networkAuthenticationRequired(InputStream content, long contentLength)
content
- the input stream containing data to chunk overcontentLength
- the length of the provided content in bytes.public static Result networkAuthenticationRequired(File content)
content
- The file to send.public static Result networkAuthenticationRequired(File content, FileMimeTypes fileMimeTypes)
content
- The file to send.fileMimeTypes
- Used for file type mapping.public static Result networkAuthenticationRequired(File content, boolean inline)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result networkAuthenticationRequired(File content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.@Deprecated public static Result networkAuthenticationRequired(File content, String filename)
networkAuthenticationRequired(File,
Optional)
.content
- The file to send.filename
- The name to send the file as.public static Result networkAuthenticationRequired(File content, Optional<String> filename)
content
- The file to send.filename
- The name to send the file as.@Deprecated public static Result networkAuthenticationRequired(File content, String filename, FileMimeTypes fileMimeTypes)
networkAuthenticationRequired(File,
Optional, FileMimeTypes)
.content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result networkAuthenticationRequired(File content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result networkAuthenticationRequired(File content, boolean inline, Optional<String> filename)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result networkAuthenticationRequired(File content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The file to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result networkAuthenticationRequired(Path content)
content
- The path to send.public static Result networkAuthenticationRequired(Path content, FileMimeTypes fileMimeTypes)
content
- The path to send.fileMimeTypes
- Used for file type mapping.public static Result networkAuthenticationRequired(Path content, boolean inline)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.public static Result networkAuthenticationRequired(Path content, boolean inline, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.fileMimeTypes
- Used for file type mapping.public static Result networkAuthenticationRequired(Path content, Optional<String> filename)
content
- The path to send.filename
- The name to send the file as.public static Result networkAuthenticationRequired(Path content, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result networkAuthenticationRequired(Path content, boolean inline, Optional<String> filename)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.public static Result networkAuthenticationRequired(Path content, boolean inline, Optional<String> filename, FileMimeTypes fileMimeTypes)
content
- The path to send.inline
- Whether the file should be sent inline, or as an attachment.filename
- The name to send the file as.fileMimeTypes
- Used for file type mapping.public static Result movedPermanently(String url)
url
- The url to redirect.public static Result movedPermanently(Call call)
call
- Call defining the url to redirect (typically comes from reverse router).public static Result found(String url)
url
- The url to redirect.public static Result found(Call call)
call
- Call defining the url to redirect (typically comes from reverse router).public static Result seeOther(String url)
url
- The url to redirect.public static Result seeOther(Call call)
call
- Call defining the url to redirect (typically comes from reverse router).public static Result redirect(String url)
url
- The url to redirect.public static Result redirect(String url, Map<String,List<String>> queryStringParams)
url
- The url to redirectqueryStringParams
- queryString parameters to add to the queryStringpublic static Result redirect(Call call)
call
- Call defining the url to redirect (typically comes from reverse router).public static Result temporaryRedirect(String url)
url
- The url to redirect.public static Result temporaryRedirect(Call call)
call
- Call defining the url to redirect (typically comes from reverse router).public static Result permanentRedirect(String url)
url
- The url to redirect.