public class HttpHeaders extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getContentDisposition(String filename,
boolean showInline)
Returns an RFC 6266 Content-Disposition header for the given filename.
|
public static String getContentDisposition(String filename, boolean showInline)
filename
- Name of the file to get the Content-Disposition header for.showInline
- If the content should be displayed inline or as an attachment.Copyright © 2016–2019. All rights reserved.