/** * Generates a 429 Too Many Requests result. * * @param content The file to send. * @param filename The name to send the file as. * @return the result */ public static Result tooManyRequests(File content, String filename) { return tooManyRequests(content, filename, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 429 Too Many Requests result. * * @param content The file to send. * @return the result */ public static Result tooManyRequests(File content) { return tooManyRequests(content, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 429 Too Many Requests result. * * @param content The file to send. * @param filename The name to send the file as. * @return the result */ public static Result tooManyRequests(File content, String filename) { return tooManyRequests(content, filename, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 429 Too Many Requests result. * * @param content The file to send. * @param inline Whether the file should be sent inline, or as an attachment. * @return the result */ public static Result tooManyRequests(File content, boolean inline) { return tooManyRequests(content, inline, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 429 Too Many Requests result. * * @param content The file to send. * @return the result */ public static Result tooManyRequests(File content) { return tooManyRequests(content, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 429 Too Many Requests result. * * @param content The file to send. * @param filename The name to send the file as. * @return the result */ public static Result tooManyRequests(File content, String filename) { return tooManyRequests(content, filename, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 429 Too Many Requests result. * * @param content The file to send. * @param inline Whether the file should be sent inline, or as an attachment. * @return the result */ public static Result tooManyRequests(File content, boolean inline) { return tooManyRequests(content, inline, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 429 Too Many Requests result. * * @param content The file to send. * @return the result */ public static Result tooManyRequests(File content) { return tooManyRequests(content, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 429 Too Many Requests result. * * @param content The file to send. * @param inline Whether the file should be sent inline, or as an attachment. * @return the result */ public static Result tooManyRequests(File content, boolean inline) { return tooManyRequests(content, inline, StaticFileMimeTypes.fileMimeTypes()); }