/** * Generates a 406 Not Acceptable result. * * @param content The file to send. * @param filename The name to send the file as. * @return the result */ public static Result notAcceptable(File content, String filename) { return notAcceptable(content, filename, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 406 Not Acceptable 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 notAcceptable(File content, boolean inline) { return notAcceptable(content, inline, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 406 Not Acceptable result. * * @param content The file to send. * @return the result */ public static Result notAcceptable(File content) { return notAcceptable(content, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 406 Not Acceptable result. * * @param content The file to send. * @return the result */ public static Result notAcceptable(File content) { return notAcceptable(content, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 406 Not Acceptable 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 notAcceptable(File content, boolean inline) { return notAcceptable(content, inline, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 406 Not Acceptable result. * * @param content The file to send. * @param filename The name to send the file as. * @return the result */ public static Result notAcceptable(File content, String filename) { return notAcceptable(content, filename, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 406 Not Acceptable 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 notAcceptable(File content, boolean inline) { return notAcceptable(content, inline, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 406 Not Acceptable result. * * @param content The file to send. * @param filename The name to send the file as. * @return the result */ public static Result notAcceptable(File content, String filename) { return notAcceptable(content, filename, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 406 Not Acceptable result. * * @param content The file to send. * @return the result */ public static Result notAcceptable(File content) { return notAcceptable(content, StaticFileMimeTypes.fileMimeTypes()); }