public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static File |
createUniqueFile(File directory,
String filename)
Creates a File that is unique in the specified directory.
|
static String |
getFilenameFromContentDisposition(javax.ws.rs.core.Response response)
Get the filename from the "Content-Disposition" header of a JAX-RS response.
|
public static File createUniqueFile(File directory, String filename) throws IOException
directory
- filename
- IOException
public static String getFilenameFromContentDisposition(javax.ws.rs.core.Response response)
response
- the JAX-RS Response instance to get the "Content-Disposition" header filename fromCopyright © 2017. All rights reserved.