Class HttpHeaders


  • public class HttpHeaders
    extends Object
    Utility class for building HTTP header values.
    • Method Detail

      • getContentDisposition

        public static String getContentDisposition​(String filename,
                                                   boolean showInline)
        Returns an RFC 6266 Content-Disposition header for the given filename.
        Parameters:
        filename - Name of the file to get the Content-Disposition header for.
        showInline - If the content should be displayed inline or as an attachment.
        Returns:
        The RFC 6266 Content-Disposition header for the filename.