/** * Generates a 201 CREATED chunked result. */ public static Status created(InputStream content) { return created(content, defaultChunkSize); }
/** * Generates a 201 Created result. * * @param content The file to send. * @return the result */ public static Result created(File content) { return created(content, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 201 Created result. * * @param content The file to send. * @param filename The name to send the file as. * @return the result */ public static Result created(File content, String filename) { return created(content, filename, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 201 Created result. * * @param content The file to send. * @return the result */ public static Result created(File content) { return created(content, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 201 Created result. * * @param content The file to send. * @param filename The name to send the file as. * @return the result */ public static Result created(File content, String filename) { return created(content, filename, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 201 Created 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 created(File content, boolean inline) { return created(content, inline, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 201 Created 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 created(File content, boolean inline) { return created(content, inline, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 201 Created result. * * @param content The file to send. * @return the result */ public static Result created(File content) { return created(content, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 201 Created 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 created(File content, boolean inline) { return created(content, inline, StaticFileMimeTypes.fileMimeTypes()); }
/** * Generates a 201 Created result. * * @param content The file to send. * @param filename The name to send the file as. * @return the result */ public static Result created(File content, String filename) { return created(content, filename, StaticFileMimeTypes.fileMimeTypes()); }