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