/** * Generates a 404 NOT_FOUND simple result. */ public static Status notFound(Content content) { return new Status(play.core.j.JavaResults.NotFound(), content, utf8); }
/** * Generates a 404 NOT_FOUND file result as an attachment. * * @param content The file to send. */ public static Status notFound(File content) { return new Status(play.core.j.JavaResults.NotFound(), content); }
/** * Generates a 404 NOT_FOUND chunked result. */ public static Status notFound(Chunks<?> chunks) { return new Status(play.core.j.JavaResults.NotFound(), chunks); }
/** * Generates a 404 NOT_FOUND simple result. */ public static StatusHeader notFound() { return new StatusHeader(play.core.j.JavaResults.NotFound()); }
/** * Generates a 404 NOT_FOUND simple result. */ public static Status notFound(byte[] content) { return new Status(play.core.j.JavaResults.NotFound(), content); }
/** * Generates a 404 NOT_FOUND simple result. */ public static Status notFound(JsonNode content) { return new Status(play.core.j.JavaResults.NotFound(), content, utf8); }
/** * Generates a 404 NOT_FOUND chunked result. */ public static Status notFound(InputStream content, int chunkSize) { return new Status(play.core.j.JavaResults.NotFound(), content, chunkSize); }
/** * Generates a 404 NOT_FOUND simple result. */ public static Status notFound(String content) { return new Status(play.core.j.JavaResults.NotFound(), content, utf8); }
/** * Generates a 404 NOT_FOUND file result. * * @param content The file to send. * @param inline Whether the file should be sent inline, or as an attachment. */ public static Status notFound(File content, boolean inline) { return new Status(JavaResults.NotFound(), content, inline); }
/** * Generates a 404 NOT_FOUND file result as an attachment. * * @param content The file to send. * @param filename The name to send the file as. */ public static Status notFound(File content, String filename) { return new Status(JavaResults.NotFound(), content, true, filename); }
/** * Generates a 404 NOT_FOUND simple result. */ public static Status notFound(Content content, String charset) { return new Status(play.core.j.JavaResults.NotFound(), content, Codec.javaSupported(charset)); }
/** * Generates a 404 NOT_FOUND simple result. */ public static Status notFound(String content, String charset) { return new Status(play.core.j.JavaResults.NotFound(), content, Codec.javaSupported(charset)); }
/** * Generates a 404 NOT_FOUND simple result. */ public static Status notFound(JsonNode content, String charset) { return new Status(play.core.j.JavaResults.NotFound(), content, Codec.javaSupported(charset)); }